#include <tree.h>
Inheritance diagram for Tree::Iterator:
Public Member Functions | |
Iterator (TreeNode *node) | |
Creates a new iterator pointing at the given node. | |
virtual | ~Iterator () |
Iterator & | operator= (const Iterator &other) |
Copy assignment 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. | |
virtual Iterator & | operator++ ()=0 |
Protected Attributes | |
TreeNode * | node_ |
virtual ~Iterator | ( | ) | [inline, virtual] |
bool operator== | ( | const Iterator & | other | ) | [inline] |
Returns true iff <other> points to the same node in memory.
bool operator!= | ( | const Iterator & | other | ) | [inline] |
Returns true iff <other> points to a different node in memory.
T* operator-> | ( | ) | [inline] |
Accesses the pointer to the TreeNode.
T* get | ( | ) | [inline] |
Returns a pointer to the TreeNode.
virtual Iterator& operator++ | ( | ) | [pure virtual] |
Implemented in Tree::PreorderIterator, Tree::PostorderIterator, and Tree::BreadthFirstIterator.