Honeycomb
0.1
Component-Model Framework
|
Depth-first pre-order traversal. More...
#include <Tree.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef TreeNode | value_type |
typedef sdt | difference_type |
typedef TreeNode * | pointer |
typedef TreeNode & | reference |
Public Member Functions | |
PreOrdIter_ () | |
PreOrdIter_ (TreeNode *root, bool end) | |
PreOrdIter_ & | operator++ () |
PreOrdIter_ & | operator-- () |
PreOrdIter_ | operator++ (int) |
PreOrdIter_ | operator-- (int) |
bool | operator== (const PreOrdIter_ &rhs) const |
bool | operator!= (const PreOrdIter_ &rhs) const |
reference | operator* () const |
pointer | operator-> () const |
void | skipChildren () |
Skip the current node's children on next step of this iterator. More... | |
szt | count () const |
Get the number of nodes between the current position and the beginning of the iteration. More... | |
Depth-first pre-order traversal.
The first node returned is the root, followed by a path through all the first children. The last node returned is the leaf node at the end of a path through all the last children. Do not modify tree while traversing.
typedef sdt honey::TreeNode< Data_, Key_, Alloc >::PreOrdIter_< TreeNode >::difference_type |
typedef std::bidirectional_iterator_tag honey::TreeNode< Data_, Key_, Alloc >::PreOrdIter_< TreeNode >::iterator_category |
typedef TreeNode* honey::TreeNode< Data_, Key_, Alloc >::PreOrdIter_< TreeNode >::pointer |
typedef TreeNode& honey::TreeNode< Data_, Key_, Alloc >::PreOrdIter_< TreeNode >::reference |
typedef TreeNode honey::TreeNode< Data_, Key_, Alloc >::PreOrdIter_< TreeNode >::value_type |
|
inline |
|
inline |
|
inline |
Get the number of nodes between the current position and the beginning of the iteration.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Skip the current node's children on next step of this iterator.