karto::GraphTraversal< T > Class Template Reference

#include <Mapper.h>

Inheritance diagram for karto::GraphTraversal< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GraphTraversal (Graph< T > *pGraph)
virtual std::vector< T * > Traverse (Vertex< T > *pStartVertex, Visitor< T > *pVisitor)=0
virtual ~GraphTraversal ()

Protected Attributes

Graph< T > * m_pGraph

Detailed Description

template<typename T>
class karto::GraphTraversal< T >

Definition at line 360 of file Mapper.h.


Constructor & Destructor Documentation

template<typename T>
karto::GraphTraversal< T >::GraphTraversal ( Graph< T > *  pGraph  )  [inline]

Constructs a traverser for the given graph

Parameters:
pGraph 

Definition at line 367 of file Mapper.h.

template<typename T>
virtual karto::GraphTraversal< T >::~GraphTraversal (  )  [inline, virtual]

Destructor

Definition at line 375 of file Mapper.h.


Member Function Documentation

template<typename T>
virtual std::vector<T*> karto::GraphTraversal< T >::Traverse ( Vertex< T > *  pStartVertex,
Visitor< T > *  pVisitor 
) [pure virtual]

Traverse the graph starting at the given vertex and applying the visitor to all visited nodes

Parameters:
pStartVertex 
pVisitor 

Implemented in karto::BreadthFirstTraversal< T >.


Member Data Documentation

template<typename T>
Graph<T>* karto::GraphTraversal< T >::m_pGraph [protected]

Definition at line 388 of file Mapper.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


karto
Author(s): SRI International (package maintained by Brian Gerkey)
autogenerated on Fri Jan 11 10:07:05 2013