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

#include <OpenMapper.h>

Public Types

typedef List< Edge< T > * > EdgeList
 
typedef List< Vertex< T > * > VertexList
 

Public Member Functions

void AddEdge (Edge< T > *pEdge)
 
void AddVertex (Vertex< T > *pVertex)
 
void Clear ()
 
const EdgeListGetEdges () const
 
const VertexListGetVertices () const
 
 Graph ()
 
virtual ~Graph ()
 

Protected Attributes

EdgeList m_Edges
 
VertexList m_Vertices
 

Detailed Description

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

Graph

Definition at line 404 of file OpenMapper.h.

Member Typedef Documentation

template<typename T>
typedef List<Edge<T>*> karto::Graph< T >::EdgeList

Type definition for list of edges

Definition at line 464 of file OpenMapper.h.

template<typename T>
typedef List<Vertex<T>*> karto::Graph< T >::VertexList

Type definition for list of vertices

Definition at line 459 of file OpenMapper.h.

Constructor & Destructor Documentation

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

Default constructor

Definition at line 470 of file OpenMapper.h.

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

Destructor

Definition at line 477 of file OpenMapper.h.

Member Function Documentation

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

Adds an edge to the graph

Parameters
pEdgeedge

Definition at line 496 of file OpenMapper.h.

template<typename T>
void karto::Graph< T >::AddVertex ( Vertex< T > *  pVertex)
inline

Adds and indexes the given vertex into the map

Parameters
pVertexvertex

Definition at line 487 of file OpenMapper.h.

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

Deletes the graph data

Definition at line 504 of file OpenMapper.h.

template<typename T>
const EdgeList& karto::Graph< T >::GetEdges ( ) const
inline

Gets the edges of this graph

Returns
graph edges

Definition at line 527 of file OpenMapper.h.

template<typename T>
const VertexList& karto::Graph< T >::GetVertices ( ) const
inline

Gets the vertices of this graph

Returns
graph vertices

Definition at line 536 of file OpenMapper.h.

Member Data Documentation

template<typename T>
EdgeList karto::Graph< T >::m_Edges
protected

Edges of this graph

Definition at line 550 of file OpenMapper.h.

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

Map of names to vector of vertices

Definition at line 545 of file OpenMapper.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:25