A class for iterating over ULList objects.
More...
#include <ulcontainers.h>
template<class T>
class ULListIterator< T >
A class for iterating over ULList objects.
Sets all data to default values (specifically, pointing to no node in no list).
Decrements this iterator. This method's main purpose is to give SWIG-based wrappers a non-operator way to decrement an iterator.
Synonym for operator*. This method's main purpose is to provide a non-operator dereferencing method for use by SWIG-based wrappers.
- Returns
- the 0-based index of the item within the list to which this iterator points. If this iterator is pointing to the end of the list or to no list at all, getIndex returns -1. Note that getIndex takes time proportional to the index returned.
- Returns
- a pointer to the list into which this iterator points.
Advances this iterator. This method's main purpose is to give SWIG-based wrappers a non-operator way to increment an iterator.
- Returns
- true if this iterator points to the first node of the list with which it is associated. Note that if the list is empty, isAtBeginning returns true even though there is no "first node."
- Returns
- true if this iterator points to the end of the list with which it is associated. The "end" of a list is not a node–it's a spot just beyond the final node in the list. Note that an iterator for which isAtEnd returns true must not be dereferenced using operator*.
- Returns
- true if this iterator does not point to the end of the list with which it is associated. A typical use of the boolean operator is to control a loop iterating over the whole list, like this: "for (iterator = list.begin(); iterator; ++iterator) {...}".
- Returns
- a reference to the data stored in the node pointed to by this iterator.
- Precondition
- This iterator must point to a node in a list. This condition is satisfied if isAtEnd() returns false or operator bool() returns true.
Pre-increment operator. Advances this iterator to the next node in the list, or to the end of the list if no such node exists.
- Returns
- a reference to this iterator.
Post-increment operator. Advances this iterator to the next node in the list, or to the end of the list if no such node exists.
- Returns
- a copy of this iterator as it was before incrementation occurred.
Pre-decrement operator. Advances this iterator to the previous node in the list, or leaves the iterator unchanged if no such node exists.
- Returns
- a reference to this iterator.
Post-decrement operator. Advances this iterator to the previous node in the list, or leaves the iterator unchanged if no such node exists.
- Returns
- a copy of this iterator as it was before decrementation occurred.
The documentation for this class was generated from the following file: