Public Types | |
typedef EST_TIterator< Container, IPointer, Entry > | Iter |
Name for an iterator like this. More... | |
Public Member Functions | |
EST_TIterator () | |
Create an iterator not associated with any specific container. More... | |
EST_TIterator (const Container &over) | |
Create an iterator ready to run over the given container. More... | |
Iter & | operator= (const Iter &orig) |
Copy an iterator by assignment. More... | |
Iter & | operator= (const Container &over) |
Assigning a container to an iterator sets it ready to start. More... | |
void | begin (const Container &over) |
Set the iterator ready to run over this container. More... | |
void | beginning () |
Reset to the start of the container. More... | |
End Tests | |
bool | has_more_elements () const |
True if there are more elements to look at. More... | |
bool | at_end () const |
True when there are no more. More... | |
operator int () const | |
Moving Forward | |
void | next () |
Next moves to the next entry. More... | |
Iter & | operator++ () |
The increment operator does the same as next. More... | |
Iter | operator++ (int dummy) |
Protected Attributes | |
Container * | cont |
The container we are looking at. More... | |
unsigned int | pos |
Position in the structure. May or may not be useful. More... | |
IPointer | pointer |
Access | |
class | EST_TStructIterator< Container, IPointer, Entry > |
class | EST_TRwIterator< Container, IPointer, Entry > |
class | EST_TRwStructIterator< Container, IPointer, Entry > |
const Entry & | current () const |
Return the element currently pointed to. More... | |
const Entry & | operator* () const |
The * operator returns the current element. More... | |
const Entry & | next_element () |
Return the current element and move the pointer forwards. More... | |
unsigned int | n () const |
Return the current position. More... | |
Definition at line 81 of file EST_TIterator.h.
typedef EST_TIterator<Container, IPointer, Entry> EST_TIterator< Container, IPointer, Entry >::Iter |
Name for an iterator like this.
Definition at line 97 of file EST_TIterator.h.
|
inline |
Create an iterator not associated with any specific container.
Definition at line 100 of file EST_TIterator.h.
|
inline |
Create an iterator ready to run over the given container.
Definition at line 103 of file EST_TIterator.h.
|
inline |
Copy an iterator by assignment.
Definition at line 107 of file EST_TIterator.h.
|
inline |
Assigning a container to an iterator sets it ready to start.
Definition at line 111 of file EST_TIterator.h.
|
inline |
Set the iterator ready to run over this container.
Definition at line 115 of file EST_TIterator.h.
|
inline |
Reset to the start of the container.
Definition at line 119 of file EST_TIterator.h.
|
inline |
True if there are more elements to look at.
Definition at line 126 of file EST_TIterator.h.
|
inline |
True when there are no more.
Definition at line 130 of file EST_TIterator.h.
|
inline |
Viewing the iterator as an integer (for instance in a test) sees a non-zero value iff there are elements still to look at.
Definition at line 136 of file EST_TIterator.h.
|
inline |
Next moves to the next entry.
Definition at line 144 of file EST_TIterator.h.
|
inline |
The increment operator does the same as next.
Definition at line 148 of file EST_TIterator.h.
|
inline |
Definition at line 150 of file EST_TIterator.h.
|
inline |
Return the element currently pointed to.
Definition at line 163 of file EST_TIterator.h.
|
inline |
The * operator returns the current element.
Definition at line 167 of file EST_TIterator.h.
|
inline |
Return the current element and move the pointer forwards.
Definition at line 177 of file EST_TIterator.h.
|
inline |
Return the current position.
Definition at line 186 of file EST_TIterator.h.
|
friend |
Definition at line 186 of file EST_TIterator.h.
|
friend |
Definition at line 186 of file EST_TIterator.h.
|
friend |
Definition at line 186 of file EST_TIterator.h.
|
protected |
The container we are looking at.
Definition at line 85 of file EST_TIterator.h.
|
protected |
Position in the structure. May or may not be useful.
Definition at line 88 of file EST_TIterator.h.
|
protected |
Structure defined by the container class which contains the current state of the iteration.
Definition at line 93 of file EST_TIterator.h.