Logo Search packages:      
Sourcecode: ragel version File versions

SVector< T, Resize >::Iter Struct Reference

#include <svectcommon.h>

List of all members.

Detailed Description

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

Shared Vector Iterator.

Definition at line 208 of file svectcommon.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 SVector &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-- (int)
 Move to previous item.
T * operator-- ()
 Move to previous item.
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 SVector &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