SparseTree::BreadthFirstIterator Class Reference

#include <sparse-tree.h>

Inheritance diagram for SparseTree::BreadthFirstIterator:

SparseTree::Iterator List of all members.

Detailed Description

template<class T>
class libpmk::SparseTree< T >::BreadthFirstIterator

Breadth-first iterator for SparseTrees.


Public Member Functions

 BreadthFirstIterator (T *node)
virtual ~BreadthFirstIterator ()
virtual Iteratoroperator++ ()
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 SparseTreeNode.
T * get ()
 Returns a pointer to the SparseTreeNode.

Protected Attributes

SparseTreeNodenode_


Constructor & Destructor Documentation

BreadthFirstIterator ( T *  node  )  [inline]

Creates a new iterator rooted at <node>. The resulting traversal will ignore any parents of <node>.

virtual ~BreadthFirstIterator (  )  [inline, virtual]


Member Function Documentation

SparseTree< T >::Iterator & operator++ (  )  [virtual]

Implements SparseTree::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 SparseTreeNode.

T* get (  )  [inline, inherited]

Returns a pointer to the SparseTreeNode.


Member Data Documentation

SparseTreeNode* node_ [protected, inherited]


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 11:39:06 2007 for libpmk2 by  doxygen 1.5.1