PUMA Library Reference Manual
|
#include <Puma/BCList.h>
Bucket list sequential iterator.
Public Member Functions | |
Iterator () | |
Construct an empty iterator. | |
operator bool () const | |
Check whether this iterator is in a valid state. | |
bool | operator== (const Iterator &other) const |
Compare two iterators. | |
bool | operator!= (const Iterator &other) const |
Compare two iterators. | |
Iterator & | operator++ () |
Unary increment operator. | |
Iterator | operator++ (int) |
Binary increment operator. | |
Iterator & | operator-- () |
Unary decrement operator. | |
Iterator | operator-- (int) |
Binary decrement operator. | |
Item & | operator* () const |
Get the list item the iterator currently points to. | |
Item * | operator-> () const |
Get a pointer to the list item the iterator currently points to. | |
Friends | |
class | BCList< Item, BUCKET_SIZE > |
|
inline |
Construct an empty iterator.
Do not use this iterator for other purposes than comparison.
|
inline |
Check whether this iterator is in a valid state.
If the iterator is not valid, it must not be used for other purposes than comparison.
|
inline |
Compare two iterators.
other | The iterator to compare to. |
|
inline |
Get the list item the iterator currently points to.
Ensure the iterator is valid before calling this method.
|
inline |
Unary increment operator.
Lets point the iterator to the next item in the list.
|
inline |
Binary increment operator.
Lets point the iterator to the next item in the list.
|
inline |
Unary decrement operator.
Lets point the iterator to the previous item in the list.
|
inline |
Binary decrement operator.
Lets point the iterator to the previous item in the list.
|
inline |
Get a pointer to the list item the iterator currently points to.
Ensure the iterator is valid before calling this method.
|
inline |
Compare two iterators.
other | The iterator to compare to. |
|
friend |