Public Types | Public Member Functions | Protected Attributes

TokenTableIterator Class Reference

Iterator for TokenTable objects. More...

#include <IToken.h>

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

List of all members.

Public Types

typedef 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 ~TokenTableIterator () throw ()
 TokenTableIterator (const ITokenTable *initialTable=0, int typeToMatch=-1)
reference operator* () const
pointer operator-> () const
TokenTableIterator & operator++ ()
const TokenTableIterator 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 TokenTable objects.

Definition at line 208 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 216 of file IToken.h.

Definition at line 215 of file IToken.h.

typedef IToken value_type

Definition at line 214 of file IToken.h.


Constructor & Destructor Documentation

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

Definition at line 218 of file IToken.h.

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

Definition at line 30 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.

IToken & operator* (  )  const

Definition at line 55 of file TokenTableIterator.cpp.

References TokenTableIteratorBase::dereference().

Here is the call graph for this function:

const TokenTableIterator operator++ ( int   ) 

Definition at line 128 of file TokenTableIterator.cpp.

TokenTableIterator & operator++ (  ) 

Definition at line 120 of file TokenTableIterator.cpp.

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

Here is the call graph for this function:

IToken * operator-> (  )  const

Definition at line 60 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: