#include <Traversal.h>
An iterator object representing the state of a tree traversal.
- See Also
- Element::traverseTree
Definition at line 88 of file Traversal.h.
TreeIterator::~TreeIterator |
( |
| ) |
|
|
inline |
Interpret this object as an iteration range, and return its begin iterator.
Definition at line 169 of file Traversal.h.
Return the sentinel end iterator for this class.
Return the current element in the traversal.
Definition at line 128 of file Traversal.h.
size_t TreeIterator::getElementDepth |
( |
| ) |
const |
|
inline |
Return the element depth of the current traversal, where the starting element represents a depth of zero.
Definition at line 139 of file Traversal.h.
bool TreeIterator::getPruneSubtree |
( |
| ) |
const |
|
inline |
Return the prune subtree flag, which controls whether the current subtree is pruned from traversal.
Definition at line 158 of file Traversal.h.
Dereference this iterator, returning the current element in the traversal.
Definition at line 116 of file Traversal.h.
Iterate to the next element in the traversal.
bool TreeIterator::operator== |
( |
const TreeIterator & |
rhs | ) |
const |
|
inline |
void TreeIterator::setPruneSubtree |
( |
bool |
prune | ) |
|
|
inline |
Set the prune subtree flag, which controls whether the current subtree is pruned from traversal.
- Parameters
-
prune | If set to true, then the current subtree will be pruned. |
Definition at line 151 of file Traversal.h.
The documentation for this class was generated from the following file: