#include <OpenMapper.h>
Public Member Functions | |
GraphTraversal (Graph< T > *pGraph) | |
virtual List< T > | Traverse (Vertex< T > *pStartVertex, Visitor< T > *pVisitor)=0 |
virtual | ~GraphTraversal () |
Protected Attributes | |
Graph< T > * | m_pGraph |
Graph traversal algorithm
Definition at line 410 of file OpenMapper.h.
karto::GraphTraversal< T >::GraphTraversal | ( | Graph< T > * | pGraph | ) | [inline] |
virtual karto::GraphTraversal< T >::~GraphTraversal | ( | ) | [inline, virtual] |
Destructor
Definition at line 425 of file OpenMapper.h.
virtual List<T> karto::GraphTraversal< T >::Traverse | ( | Vertex< T > * | pStartVertex, |
Visitor< T > * | pVisitor | ||
) | [pure virtual] |
Traverses the graph starting at the given vertex and applying the visitor to all visited nodes
pStartVertex | starting vertex |
pVisitor | visitor |
Implemented in karto::BreadthFirstTraversal< T >.
Graph<T>* karto::GraphTraversal< T >::m_pGraph [protected] |
Graph being traversed
Definition at line 442 of file OpenMapper.h.