Public Member Functions | |
LST_HEAD () | |
default constructor | |
~LST_HEAD () | |
destructor, deletes list but not elements pointed to by list entries. | |
void | push_back (void *node) |
inserts after the last element of the list. | |
void * | dequeue () |
removes first element from list and returns it. | |
size_t | size () const |
returns number of elements in the list. | |
void * | front () |
returns the first element in the list. | |
void * | position (void *node) |
Make a node current and return the argument. | |
void * | next () |
Advances the current element to the next element in the list and returns a pointer to the next element (if any), NULL otherwise. | |
void * | current () const |
Returns pointer to current element in list. | |
Private Member Functions | |
OFListIterator (void *) theIterator | |
list iterator, points to current element | |
Private Attributes | |
OFList< void * > | theList |
the list |
Definition at line 44 of file lst.h.
|
Returns pointer to current element in list. A valid current element must exist (e.g. position() called with an existing element), otherwise the behaviour is undefined. |
|
removes first element from list and returns it. Returns NULL if list is empty. |
|
returns the first element in the list.
|
|
Advances the current element to the next element in the list and returns a pointer to the next element (if any), NULL otherwise. A valid current element must exist (e.g. position() called with an existing element), otherwise the behaviour is undefined. |
|
Make a node current and return the argument.
|
|
inserts after the last element of the list.
|
|
returns number of elements in the list.
|