|
SpatiumLib
|
#include <Tree.h>

Public Member Functions | |
| TreeIterator (const Tree< G > &tree, bool end=false) | |
| Constructor. More... | |
| bool | operator== (const TreeIterator< G > &other) const |
| Compare operator. Is equal. More... | |
| bool | operator!= (const TreeIterator< G > &other) const |
| Compare operator. Is unequal. More... | |
| TreeIterator< G > & | operator++ () |
| Increment operator. More... | |
| std::shared_ptr< TreeNode< G > > | operator * () const |
| Get tree node currently being pointed to. More... | |
Protected Attributes | |
| Tree< G > | m_tree |
| bool | m_end |
| std::stack< std::shared_ptr< TreeNode< G > > > | m_stack |
Iterator for a Tree.
TreeIterator is an iterator that traverses a tree in depth-frist order.
|
inline |
Constructor.
| [in] | tree | Tree |
| [in] | end | If true, point to end of tree, otherwise point to beginning of tree. (default = false) |
|
inline |
Get tree node currently being pointed to.
|
inline |
Compare operator. Is unequal.
| [in] | other | Other iterator |
|
inline |
Increment operator.
|
inline |
Compare operator. Is equal.
| [in] | other | Other iterator |
|
protected |
|
protected |
|
protected |
1.8.15