Public Types | Public Member Functions | Protected Attributes | List of all members
karto::Graph< T > Class Template Reference

#include <Mapper.h>

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
 
VertexMap m_Vertices
 

Detailed Description

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

Graph

Definition at line 394 of file Mapper.h.

Member Typedef Documentation

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

Maps names to vector of vertices

Definition at line 448 of file Mapper.h.

Constructor & Destructor Documentation

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

Default constructor

Definition at line 454 of file Mapper.h.

template<typename T>
virtual karto::Graph< T >::~Graph ( )
inlinevirtual

Destructor

Definition at line 461 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 481 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 472 of file Mapper.h.

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

Deletes the graph data

Definition at line 489 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 512 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 521 of file Mapper.h.

Member Data Documentation

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

Edges of this graph

Definition at line 535 of file Mapper.h.

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

Map of names to vector of vertices

Definition at line 530 of file Mapper.h.


The documentation for this class was generated from the following file:


open_karto
Author(s):
autogenerated on Mon Jun 10 2019 14:02:19