Public Types | Public Member Functions | Protected Attributes

ConstTokenTableIterator Class Reference

Iterator for const TokenTable objects. More...

#include <IToken.h>

Inheritance diagram for ConstTokenTableIterator:
Inheritance graph
[legend]
Collaboration diagram for ConstTokenTableIterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef const IToken value_type
typedef value_type & reference
typedef value_type * pointer
typedef std::forward_iterator_tag iterator_category
typedef std::ptrdiff_t difference_type

Public Member Functions

virtual ~ConstTokenTableIterator () throw ()
 ConstTokenTableIterator (const ITokenTable *initialTable=0, int typeToMatch=-1)
reference operator* () const
pointer operator-> () const
ConstTokenTableIterator & operator++ ()
const ConstTokenTableIterator operator++ (int)
bool operator== (const TokenTableIteratorBase other) const
bool operator!= (const TokenTableIteratorBase other) const
const IToken * dereference () const
IToken * dereference ()
void incrementIterator ()
void reset ()
bool eof ()

Protected Attributes

int matchType
const ITokenTable * table
int current

Detailed Description

Iterator for const TokenTable objects.

Definition at line 229 of file IToken.h.


Member Typedef Documentation

typedef std::ptrdiff_t difference_type [inherited]

Definition at line 186 of file IToken.h.

typedef std::forward_iterator_tag iterator_category [inherited]

Definition at line 185 of file IToken.h.

typedef value_type* pointer

Definition at line 237 of file IToken.h.

Definition at line 236 of file IToken.h.

typedef const IToken value_type

Definition at line 235 of file IToken.h.


Constructor & Destructor Documentation

virtual ~ConstTokenTableIterator (  )  throw () [inline, virtual]

Definition at line 239 of file IToken.h.

ConstTokenTableIterator ( const ITokenTable *  initialTable = 0,
int  typeToMatch = -1 
) [explicit]

Definition at line 26 of file TokenTableIterator.cpp.


Member Function Documentation

const IToken * dereference (  )  const [inherited]
IToken * dereference (  )  [inherited]
bool eof (  )  [inherited]

Definition at line 50 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::current.

void incrementIterator (  )  [inherited]
bool operator!= ( const TokenTableIteratorBase  other  )  const [inline, inherited]

Definition at line 191 of file IToken.h.

References TokenTableIteratorBase::current.

const IToken & operator* (  )  const

Definition at line 65 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::dereference().

Here is the call graph for this function:

const ConstTokenTableIterator operator++ ( int   ) 

Definition at line 144 of file TokenTableIterator.cpp.

ConstTokenTableIterator & operator++ (  ) 

Definition at line 136 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::current, and TokenTableIteratorBase::incrementIterator().

Here is the call graph for this function:

const IToken * operator-> (  )  const

Definition at line 70 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::dereference().

Here is the call graph for this function:

bool operator== ( const TokenTableIteratorBase  other  )  const [inline, inherited]

Definition at line 190 of file IToken.h.

References TokenTableIteratorBase::current.

void reset (  )  [inherited]

Definition at line 44 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::current, and TokenTableIteratorBase::incrementIterator().

Here is the call graph for this function:


Member Data Documentation

int current [protected, inherited]
int matchType [protected, inherited]

Definition at line 200 of file IToken.h.

Referenced by TokenTableIteratorBase::incrementIterator().

const ITokenTable* table [protected, inherited]

The documentation for this class was generated from the following files: