Iterator for a THashTable. More...
#include <thashtable.h>
Public Member Functions | |
THashTableIterator (const THashTable< T > &) | |
Constructor. | |
virtual bool | done () const |
virtual T & | next () |
virtual T & | previous () |
virtual T & | current () const |
virtual void | first () |
virtual void | last () |
const THashTable< T > & | table () const |
Return table reference. |
Iterator for a THashTable.
THashTableIterator | ( | const THashTable< T > & | Tb | ) | [inline] |
Constructor.
[in] | Tb | (Table to iterate. |
bool done | ( | ) | const [inline, virtual] |
Check if end of container is reached.
Implements TIterator< T >.
T & next | ( | ) | [inline, virtual] |
Returns the current data and advances the iterator. postfix as in t = c++;.
Implements TIterator< T >.
T & previous | ( | ) | [inline, virtual] |
Returns the current data and backup. postfix as in t = c--;.
Implements TIterator< T >.
T & current | ( | ) | const [inline, virtual] |
void first | ( | ) | [inline, virtual] |
Move to first data.
Implements TIterator< T >.
void last | ( | ) | [inline, virtual] |
Move to last data.
Implements TIterator< T >.
const THashTable< T > & table | ( | ) | const [inline] |
Return table reference.