Public Member Functions | |
BreadthFirstTraversal (Graph< T > *pGraph) | |
virtual List< T > | Traverse (Vertex< T > *pStartVertex, Visitor< T > *pVisitor) |
virtual | ~BreadthFirstTraversal () |
Definition at line 1316 of file OpenMapper.cpp.
karto::BreadthFirstTraversal< T >::BreadthFirstTraversal | ( | Graph< T > * | pGraph | ) | [inline] |
Constructs a breadth-first traverser for the given graph
Definition at line 1322 of file OpenMapper.cpp.
virtual karto::BreadthFirstTraversal< T >::~BreadthFirstTraversal | ( | ) | [inline, virtual] |
Destructor
Definition at line 1330 of file OpenMapper.cpp.
virtual List<T> karto::BreadthFirstTraversal< T >::Traverse | ( | Vertex< T > * | pStartVertex, |
Visitor< T > * | pVisitor | ||
) | [inline, virtual] |
Traverse the graph starting with the given vertex; applies the visitor to visited nodes
pStartVertex | |
pVisitor |
Implements karto::GraphTraversal< T >.
Definition at line 1341 of file OpenMapper.cpp.