![]() |
#include <Table.h>
Public Member Functions | |
| Iterator () | |
| Create iterator positioned at the end of the table. | |
| Iterator (const Iterator &it) | |
| Copy constructor. | |
| Iterator (const Table< T > &table) | |
| Create iterator positioned at the beginning of the table. | |
| Iterator (const Table< T > &table, int id) | |
| Create iterator positioned at the element with given id. | |
| int | index () const |
| Current position in the table. | |
| Iterator & | operator++ () |
| Prefix increment. | |
| bool | end () const |
| Check if iterator has reached end of the table. | |
| bool | last () const |
| Check if iterator is at the last position. | |
| T & | operator * () const |
| Return current element. | |
| T * | operator-> () const |
| Pointer mechanism. | |
| operator T * () const | |
| Cast to pointer to current element. | |
| T * | pointer () const |
| Returns pointer to current element. | |
| void | operator= (const Iterator &it) |
| Assignment. | |
| bool | operator== (const Iterator &it) const |
| Equality operator. | |
| bool | operator!= (const Iterator &it) const |
| Inequality operator. | |
Friends | |
| class | Table< T > |
| Friends. | |
for (Table<T>::Iterator it(table); !it.end(); ++it) { it->...(); }
|
|||||||||
|
Create iterator positioned at the end of the table.
|
|
||||||||||
|
Copy constructor.
|
|
||||||||||
|
Create iterator positioned at the beginning of the table.
|
|
||||||||||||||||
|
Create iterator positioned at the element with given id.
|
|
|||||||||
|
Check if iterator has reached end of the table.
|
|
|||||||||
|
Current position in the table.
|
|
|||||||||
|
Check if iterator is at the last position.
|
|
|||||||||
|
Return current element.
|
|
|||||||||
|
Cast to pointer to current element.
|
|
||||||||||
|
Inequality operator.
|
|
|||||||||
|
Prefix increment.
|
|
|||||||||
|
Pointer mechanism.
|
|
||||||||||
|
Assignment.
|
|
||||||||||
|
Equality operator.
|
|
|||||||||
|
Returns pointer to current element.
|
|
|||||
|
Friends.
|
![]()
Documentation automatically generated with Doxygen on 10 Sep 2004.