Logo Search packages:      
Sourcecode: ragel version File versions

Vector< T, Resize >::Iter Struct Reference

#include <vectcommon.h>

List of all members.


Detailed Description

template<class T, class Resize = ResizeExpn>
struct Vector< T, Resize >::Iter

Vector Iterator.

Definition at line 203 of file vectcommon.h.


Public Member Functions

bool beg () const
 At beginning?
T * decrement ()
 Move to previous item.
bool end () const
 At end?
bool first () const
 At first element?
bool gtb () const
 Greater than beginning?
T * increment ()
 Move to next item.
 Iter (const IterPrev &vp)
 Iter (const IterNext &vn)
 Iter (const IterLast &vl)
 Iter (const IterFirst &vf)
 Iter (const Vector &v)
bool last () const
 At last element?
bool lte () const
 Less than end?
IterNext next () const
 Return the next item. Does not modify this.
 operator T * () const
 Implicit cast to T*.
T & operator* () const
 Dereference operator returns T&.
T * operator++ (int)
 Move to next item.
T * operator++ ()
 Move to next item.
T * operator+= (long n)
 Move n items forward.
T * operator-- (int)
 Move to previous item.
T * operator-- ()
 Move to previous item.
T * operator-= (long n)
 Move n items back.
T * operator-> () const
 Arrow operator returns T*.
Iteroperator= (const IterPrev &vl)
Iteroperator= (const IterNext &vf)
Iteroperator= (const IterLast &vl)
Iteroperator= (const IterFirst &vf)
Iteroperator= (const Vector &v)
T & operator[] (int i) const
long pos () const
IterPrev prev () const
 Return the previous item. Does not modify this.

Public Attributes

T * ptr
 The iterator is simply a pointer.
T * ptrBeg
T * ptrEnd

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index