Public Member Functions | |
BreadthFirstTraversal (Graph< T > *pGraph) | |
virtual std::vector< T * > | Traverse (Vertex< T > *pStartVertex, Visitor< T > *pVisitor) |
virtual | ~BreadthFirstTraversal () |
Definition at line 989 of file Mapper.cpp.
karto::BreadthFirstTraversal< T >::BreadthFirstTraversal | ( | Graph< T > * | pGraph | ) | [inline] |
Constructs a breadth-first traverser for the given graph
Definition at line 995 of file Mapper.cpp.
virtual karto::BreadthFirstTraversal< T >::~BreadthFirstTraversal | ( | ) | [inline, virtual] |
Destructor
Definition at line 1003 of file Mapper.cpp.
virtual std::vector<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 1014 of file Mapper.cpp.