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 | |
LStackConstIterator (const LStack< T > &stack, size_t pos=0) | |
Construct an LStackIterator at position pos. More... | |
LStackConstIterator (const LStack< T > &stack, LStackNode< T > *pos) | |
Construct an LStackIterator at node pos. More... | |
bool | operator!= (const LStackConstIterator< T > &lhs) const |
Nonequality operator. More... | |
const T & | operator* (void) const |
Dereference operator returns a const reference to the item contained at the current position. More... | |
const LStackConstIterator< T > & | operator++ (void) const |
Preincrement operator. More... | |
LStackConstIterator< T > | operator++ (int) const |
Postincrement operator. More... | |
bool | operator== (const LStackConstIterator< T > &rhs) const |
Equality operator. More... | |
Private Attributes | |
LStackNode< T > * | pos_ |
const 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::LStackConstIterator< T >::difference_type |
typedef ::std::forward_iterator_tag madara::utility::LStackConstIterator< T >::iterator_category |
typedef T* madara::utility::LStackConstIterator< T >::pointer |
typedef T& madara::utility::LStackConstIterator< T >::reference |
typedef T madara::utility::LStackConstIterator< T >::value_type |
madara::utility::LStackConstIterator< T >::LStackConstIterator | ( | const LStack< T > & | stack, |
size_t | pos = 0 |
||
) |
Construct an LStackIterator at position pos.
Definition at line 587 of file LStack.cpp.
madara::utility::LStackConstIterator< T >::LStackConstIterator | ( | const LStack< T > & | stack, |
LStackNode< T > * | pos | ||
) |
Construct an LStackIterator at node pos.
Definition at line 604 of file LStack.cpp.
bool madara::utility::LStackConstIterator< T >::operator!= | ( | const LStackConstIterator< T > & | lhs | ) | const |
Nonequality operator.
Definition at line 580 of file LStack.cpp.
const T & madara::utility::LStackConstIterator< T >::operator* | ( | void | ) | const |
Dereference operator returns a const reference to the item contained at the current position.
Definition at line 543 of file LStack.cpp.
const madara::utility::LStackConstIterator< T > & madara::utility::LStackConstIterator< T >::operator++ | ( | void | ) | const |
Preincrement operator.
Definition at line 549 of file LStack.cpp.
madara::utility::LStackConstIterator< T > madara::utility::LStackConstIterator< T >::operator++ | ( | int | ) | const |
Postincrement operator.
Definition at line 558 of file LStack.cpp.
bool madara::utility::LStackConstIterator< T >::operator== | ( | const LStackConstIterator< T > & | rhs | ) | const |
Equality operator.
Definition at line 572 of file LStack.cpp.
|
mutableprivate |
|
private |