#include <tree.h>
Inheritance diagram for Tree::PostorderIterator:
Public Member Functions | |
PostorderIterator (T *node) | |
virtual | ~PostorderIterator () |
virtual Iterator & | operator++ () |
bool | operator== (const Iterator &other) |
Returns true iff <other> points to the same node in memory. | |
bool | operator!= (const Iterator &other) |
Returns true iff <other> points to a different node in memory. | |
T * | operator-> () |
Accesses the pointer to the TreeNode. | |
T * | get () |
Returns a pointer to the TreeNode. | |
Protected Attributes | |
TreeNode * | node_ |
PostorderIterator | ( | T * | node | ) |
Creates a new iterator rooted at <node>. The resulting traversal will ignore any parents of <node>.
virtual ~PostorderIterator | ( | ) | [inline, virtual] |
Implements Tree::Iterator.
bool operator== | ( | const Iterator & | other | ) | [inline, inherited] |
Returns true iff <other> points to the same node in memory.
bool operator!= | ( | const Iterator & | other | ) | [inline, inherited] |
Returns true iff <other> points to a different node in memory.
T* operator-> | ( | ) | [inline, inherited] |
Accesses the pointer to the TreeNode.
T* get | ( | ) | [inline, inherited] |
Returns a pointer to the TreeNode.