Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
karto::Vertex< T > Class Template Reference

#include <OpenMapper.h>

Public Member Functions

List< Vertex< T > * > GetAdjacentVertices () const
 
const List< Edge< T > * > & GetEdges () const
 
GetVertexObject () const
 
 Vertex (T pObject)
 
virtual ~Vertex ()
 

Private Member Functions

void AddEdge (Edge< T > *pEdge)
 

Private Attributes

List< Edge< T > * > m_Edges
 
m_pObject
 

Friends

class Edge< T >
 

Detailed Description

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

Represents a object in a graph

Definition at line 217 of file OpenMapper.h.

Constructor & Destructor Documentation

template<typename T>
karto::Vertex< T >::Vertex ( pObject)
inline

Constructs a vertex representing the given object

Parameters
pObjectobject

Definition at line 226 of file OpenMapper.h.

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

Destructor

Definition at line 234 of file OpenMapper.h.

Member Function Documentation

template<typename T>
void karto::Vertex< T >::AddEdge ( Edge< T > *  pEdge)
inlineprivate

Adds the given edge to this vertex's edge list

Parameters
pEdgeedge to add

Definition at line 288 of file OpenMapper.h.

template<typename T>
List<Vertex<T>*> karto::Vertex< T >::GetAdjacentVertices ( ) const
inline

Gets a list of the vertices adjacent to this vertex

Returns
adjacent vertices

Definition at line 260 of file OpenMapper.h.

template<typename T>
const List<Edge<T>*>& karto::Vertex< T >::GetEdges ( ) const
inline

Gets edges adjacent to this vertex

Returns
adjacent edges

Definition at line 242 of file OpenMapper.h.

template<typename T>
T karto::Vertex< T >::GetVertexObject ( ) const
inline

Gets the object associated with this vertex

Returns
the object

Definition at line 251 of file OpenMapper.h.

Friends And Related Function Documentation

template<typename T>
friend class Edge< T >
friend

Definition at line 219 of file OpenMapper.h.

Member Data Documentation

template<typename T>
List<Edge<T>*> karto::Vertex< T >::m_Edges
private

Definition at line 294 of file OpenMapper.h.

template<typename T>
T karto::Vertex< T >::m_pObject
private

Definition at line 293 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:26