|
5.0.0
Freundlich's C++ toolkit
|
Wraps a tree to make it iterable in a pre-order fashion.
Internally, this class manages a stack, losely imitating the runtime stack in a recursive implementation.
Example:
Classes | |
| class | iterator |
Public Types | |
| using | const_iterator = iterator |
Public Member Functions | |
| pre_order (Tree &_tree) | |
| Construct a pre-order traversal from a tree (which can be const or nonconst) | |
| iterator | begin () const |
| Return an iterator to the first tree in the traversal. | |
| iterator | end () const |
| Return a dummy iterator to stop the traversal. | |
| using fcppt::container::tree::pre_order< Tree >::const_iterator = iterator |
|
inlineexplicit |
Construct a pre-order traversal from a tree (which can be const or nonconst)
|
inlinenodiscard |
Return an iterator to the first tree in the traversal.
|
inlinenodiscard |
Return a dummy iterator to stop the traversal.