evio
6.0
|
Depth first iterator. More...
#include <BaseStructure.h>
Public Member Functions | |
nodeIterator (R &node, bool isEnd) | |
Constructor that copies shared pointer arg. More... | |
R | operator* () const |
Dereference operator. More... | |
bool | operator== (const nodeIterator &other) const |
Equal operator. More... | |
bool | operator!= (const nodeIterator &other) const |
Not equal operator. More... | |
bool | isEndIter () |
Is this the end of the iterator? More... | |
const nodeIterator | operator++ (int) |
Post increment operator gets ignored arg of 0 to distinguish from pre, A++. More... | |
const nodeIterator & | operator++ () |
Pre increment operator, ++A. More... | |
Protected Attributes | |
std::stack< std::pair< KidIter, KidIter > > | stack |
Stack of pair containing 2 iterators, each iterating over vector of node's children (shared pts). More... | |
R | currentNode |
Where we are now in the tree. More... | |
bool | isEnd |
Is this the end iterator? More... | |
Depth first iterator.
|
inlineexplicit |
Constructor that copies shared pointer arg.
References evio::nodeIterator< R >::isEnd, and evio::nodeIterator< R >::stack.
|
inline |
Is this the end of the iterator?
References evio::nodeIterator< R >::isEnd.
|
inline |
Not equal operator.
References evio::nodeIterator< R >::isEnd.
|
inline |
Dereference operator.
References evio::nodeIterator< R >::currentNode.
|
inline |
Pre increment operator, ++A.
References evio::nodeIterator< R >::currentNode, evio::nodeIterator< R >::isEnd, and evio::nodeIterator< R >::stack.
|
inline |
Post increment operator gets ignored arg of 0 to distinguish from pre, A++.
References evio::nodeIterator< R >::currentNode, evio::nodeIterator< R >::isEnd, and evio::nodeIterator< R >::stack.
|
inline |
Equal operator.
References evio::nodeIterator< R >::isEnd.
|
protected |
Where we are now in the tree.
Referenced by evio::nodeIterator< R >::operator*(), and evio::nodeIterator< R >::operator++().
|
protected |
Is this the end iterator?
Referenced by evio::nodeIterator< R >::nodeIterator(), evio::nodeIterator< R >::isEndIter(), evio::nodeIterator< R >::operator!=(), evio::nodeIterator< R >::operator++(), and evio::nodeIterator< R >::operator==().
|
protected |
Stack of pair containing 2 iterators, each iterating over vector of node's children (shared pts).
In each pair, first is current iterator, second is end iterator.
Referenced by evio::nodeIterator< R >::nodeIterator(), and evio::nodeIterator< R >::operator++().