#include <tree.h>
Inheritance diagram for Tree::BreadthFirstIterator:
Public Member Functions | |
BreadthFirstIterator (int node_id, const Tree< T > *tree) | |
virtual | ~BreadthFirstIterator () |
virtual Iterator & | operator++ () |
bool | operator== (const Iterator &other) |
Returns true iff <other> points to the same node. | |
bool | operator!= (const Iterator &other) |
Returns true iff <other> points to a different node. | |
int | operator * () |
int | id () |
Protected Attributes | |
int | node_id_ |
const Tree< T > * | source_tree_ |
BreadthFirstIterator | ( | int | node_id, | |
const Tree< T > * | tree | |||
) | [inline] |
Creates a new iterator rooted at <node_id>. The resulting traversal will ignore any parents of <node_id>.
virtual ~BreadthFirstIterator | ( | ) | [inline, virtual] |
Implements Tree::Iterator.
bool operator== | ( | const Iterator & | other | ) | [inline, inherited] |
Returns true iff <other> points to the same node.
bool operator!= | ( | const Iterator & | other | ) | [inline, inherited] |
Returns true iff <other> points to a different node.
int operator * | ( | ) | [inline, inherited] |
int id | ( | ) | [inline, inherited] |
int node_id_ [protected, inherited] |
const Tree<T>* source_tree_ [protected, inherited] |