|
MADARA
3.1.8
|
Implements a forward iterator for LStack type classes. More...
#include <LStack.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 | |
| LStackIterator (LStack< T > &stack, size_t pos=0) | |
| Construct an LStackIterator at position pos. More... | |
| LStackIterator (LStack< T > &stack, LStackNode< T > *pos=0) | |
| Construct an LStackIterator at node pos. More... | |
| bool | operator!= (const LStackIterator< 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... | |
| LStackIterator< T > & | operator++ (void) |
| Preincrement operator. More... | |
| LStackIterator< T > | operator++ (int) |
| Postincrement operator. More... | |
| bool | operator== (const LStackIterator< T > &rhs) const |
| Equality operator. More... | |
Private Attributes | |
| LStackNode< T > * | pos_ |
| LStack< T > & | stack_ |
| the stack we are dealing with More... | |
Implements a forward iterator for LStack 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 stack!
| typedef int madara::utility::LStackIterator< T >::difference_type |
| typedef ::std::forward_iterator_tag madara::utility::LStackIterator< T >::iterator_category |
| typedef T* madara::utility::LStackIterator< T >::pointer |
| typedef T& madara::utility::LStackIterator< T >::reference |
| typedef T madara::utility::LStackIterator< T >::value_type |
| madara::utility::LStackIterator< T >::LStackIterator | ( | LStack< T > & | stack, |
| size_t | pos = 0 |
||
| ) |
Construct an LStackIterator at position pos.
Definition at line 518 of file LStack.cpp.
| madara::utility::LStackIterator< T >::LStackIterator | ( | LStack< T > & | stack, |
| LStackNode< T > * | pos = 0 |
||
| ) |
Construct an LStackIterator at node pos.
Definition at line 535 of file LStack.cpp.
| bool madara::utility::LStackIterator< T >::operator!= | ( | const LStackIterator< T > & | lhs | ) | const |
Nonequality operator.
Definition at line 510 of file LStack.cpp.
| T & madara::utility::LStackIterator< T >::operator* | ( | void | ) |
Dereference operator returns a reference to the item contained at the current position.
Definition at line 465 of file LStack.cpp.
| const T & madara::utility::LStackIterator< T >::operator* | ( | void | ) | const |
Returns a const reference to the item contained at the current position.
Definition at line 471 of file LStack.cpp.
| madara::utility::LStackIterator< T > & madara::utility::LStackIterator< T >::operator++ | ( | void | ) |
Preincrement operator.
Definition at line 477 of file LStack.cpp.
| madara::utility::LStackIterator< T > madara::utility::LStackIterator< T >::operator++ | ( | int | ) |
Postincrement operator.
Definition at line 487 of file LStack.cpp.
| bool madara::utility::LStackIterator< T >::operator== | ( | const LStackIterator< T > & | rhs | ) | const |
Equality operator.
Definition at line 500 of file LStack.cpp.
|
mutableprivate |
|
private |