karto::Graph< T > Class Template Reference

#include <Mapper.h>

List of all members.

Public Types

typedef std::map< Name,
std::vector< Vertex< T > * > > 
VertexMap

Public Member Functions

void AddEdge (Edge< T > *pEdge)
void AddVertex (const Name &rName, Vertex< T > *pVertex)
void Clear ()
const std::vector< Edge< T > * > & GetEdges () const
const VertexMapGetVertices () const
 Graph ()
virtual ~Graph ()

Protected Attributes

std::vector< Edge< T > * > m_Edges
GraphTraversal< T > * m_pTraversal
VertexMap m_Vertices

Detailed Description

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

Definition at line 396 of file Mapper.h.


Member Typedef Documentation

template<typename T>
typedef std::map<Name, std::vector<Vertex<T>*> > karto::Graph< T >::VertexMap

Definition at line 399 of file Mapper.h.


Constructor & Destructor Documentation

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

Default constructor

Definition at line 405 of file Mapper.h.

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

Destructor

Definition at line 413 of file Mapper.h.


Member Function Documentation

template<typename T>
void karto::Graph< T >::AddEdge ( Edge< T > *  pEdge  )  [inline]

Adds an edge to the graph

Parameters:
pEdge 

Definition at line 433 of file Mapper.h.

template<typename T>
void karto::Graph< T >::AddVertex ( const Name rName,
Vertex< T > *  pVertex 
) [inline]

Adds and indexes the given vertex into the map using the given name

Parameters:
rName 
pVertex 

Definition at line 424 of file Mapper.h.

template<typename T>
void karto::Graph< T >::Clear (  )  [inline]

Deletes the graph data

Definition at line 441 of file Mapper.h.

template<typename T>
const std::vector<Edge<T>*>& karto::Graph< T >::GetEdges (  )  const [inline]

Gets the edges of this graph

Returns:
graph edges

Definition at line 464 of file Mapper.h.

template<typename T>
const VertexMap& karto::Graph< T >::GetVertices (  )  const [inline]

Gets the vertices of this graph

Returns:
graph vertices

Definition at line 473 of file Mapper.h.


Member Data Documentation

template<typename T>
std::vector<Edge<T>*> karto::Graph< T >::m_Edges [protected]

Definition at line 480 of file Mapper.h.

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

Definition at line 481 of file Mapper.h.

template<typename T>
VertexMap karto::Graph< T >::m_Vertices [protected]

Definition at line 479 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