#include <tree.h>
Inheritance diagram for Tree::BreadthFirstIterator:
Public Member Functions | |
BreadthFirstIterator (T *node) | |
virtual | ~BreadthFirstIterator () |
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_ |
BreadthFirstIterator | ( | T * | node | ) | [inline] |
Creates a new iterator rooted at <node>. The resulting traversal will ignore any parents of <node>.
virtual ~BreadthFirstIterator | ( | ) | [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.