|
MADARA
3.1.8
|
Implements a forward iterator for LQueue type classes. More...
#include <LQueue.h>
Public Types | |
| typedef int | difference_type |
| typedef ::std::forward_iterator_tag | iterator_category |
| typedef T * | pointer |
| typedef T & | reference |
| typedef T | value_type |
Public Member Functions | |
| LQueueIterator (LQueue< T > &queue, size_t pos=0) | |
| Construct an LQueueIterator at position pos. More... | |
| LQueueIterator (LQueue< T > &queue, LQueueNode< T > *pos=0) | |
| Construct an LQueueIterator at node pos. More... | |
| bool | operator!= (const LQueueIterator< T > &lhs) const |
| Nonequality operator. More... | |
| T & | operator* (void) |
| Dereference operator returns a reference to the item contained at the current position. More... | |
| const T & | operator* (void) const |
| Returns a const reference to the item contained at the current position. More... | |
| LQueueIterator< T > & | operator++ (void) |
| Preincrement operator. More... | |
| LQueueIterator< T > | operator++ (int) |
| Postincrement operator. More... | |
| bool | operator== (const LQueueIterator< T > &rhs) const |
| Equality operator. More... | |
Private Attributes | |
| LQueueNode< T > * | pos_ |
| LQueue< T > & | queue_ |
| the queue we are dealing with More... | |
Implements a forward iterator for LQueue type classes.
Note: Having a const ExpressionTreeIterator does not guarantee that the current position that it points to will not change, it only guarantees that you cannot change the underlying queue!
| typedef int madara::utility::LQueueIterator< T >::difference_type |
| typedef ::std::forward_iterator_tag madara::utility::LQueueIterator< T >::iterator_category |
| typedef T* madara::utility::LQueueIterator< T >::pointer |
| typedef T& madara::utility::LQueueIterator< T >::reference |
| typedef T madara::utility::LQueueIterator< T >::value_type |
| madara::utility::LQueueIterator< T >::LQueueIterator | ( | LQueue< T > & | queue, |
| size_t | pos = 0 |
||
| ) |
Construct an LQueueIterator at position pos.
Definition at line 510 of file LQueue.cpp.
| madara::utility::LQueueIterator< T >::LQueueIterator | ( | LQueue< T > & | queue, |
| LQueueNode< T > * | pos = 0 |
||
| ) |
Construct an LQueueIterator at node pos.
Definition at line 527 of file LQueue.cpp.
| bool madara::utility::LQueueIterator< T >::operator!= | ( | const LQueueIterator< T > & | lhs | ) | const |
Nonequality operator.
Definition at line 502 of file LQueue.cpp.
| T & madara::utility::LQueueIterator< T >::operator* | ( | void | ) |
Dereference operator returns a reference to the item contained at the current position.
Definition at line 455 of file LQueue.cpp.
| const T & madara::utility::LQueueIterator< T >::operator* | ( | void | ) | const |
Returns a const reference to the item contained at the current position.
Definition at line 461 of file LQueue.cpp.
| madara::utility::LQueueIterator< T > & madara::utility::LQueueIterator< T >::operator++ | ( | void | ) |
Preincrement operator.
Definition at line 468 of file LQueue.cpp.
| madara::utility::LQueueIterator< T > madara::utility::LQueueIterator< T >::operator++ | ( | int | ) |
Postincrement operator.
Definition at line 479 of file LQueue.cpp.
| bool madara::utility::LQueueIterator< T >::operator== | ( | const LQueueIterator< T > & | rhs | ) | const |
Equality operator.
Definition at line 492 of file LQueue.cpp.
|
mutableprivate |
|
private |