#include <OpenMapper.h>
Public Member Functions | |
List< Vertex< T > * > | GetAdjacentVertices () const |
const List< Edge< T > * > & | GetEdges () const |
T | GetVertexObject () const |
Vertex (T pObject) | |
virtual | ~Vertex () |
Private Member Functions | |
void | AddEdge (Edge< T > *pEdge) |
Private Attributes | |
List< Edge< T > * > | m_Edges |
T | m_pObject |
Friends | |
class | Edge< T > |
Represents a object in a graph
Definition at line 217 of file OpenMapper.h.
karto::Vertex< T >::Vertex | ( | T | pObject | ) | [inline] |
Constructs a vertex representing the given object
pObject | object |
Definition at line 226 of file OpenMapper.h.
virtual karto::Vertex< T >::~Vertex | ( | ) | [inline, virtual] |
Destructor
Definition at line 234 of file OpenMapper.h.
void karto::Vertex< T >::AddEdge | ( | Edge< T > * | pEdge | ) | [inline, private] |
Adds the given edge to this vertex's edge list
pEdge | edge to add |
Definition at line 288 of file OpenMapper.h.
List<Vertex<T>*> karto::Vertex< T >::GetAdjacentVertices | ( | ) | const [inline] |
Gets a list of the vertices adjacent to this vertex
Definition at line 260 of file OpenMapper.h.
const List<Edge<T>*>& karto::Vertex< T >::GetEdges | ( | ) | const [inline] |
Gets edges adjacent to this vertex
Definition at line 242 of file OpenMapper.h.
T karto::Vertex< T >::GetVertexObject | ( | ) | const [inline] |
Gets the object associated with this vertex
Definition at line 251 of file OpenMapper.h.
friend class Edge< T > [friend] |
Definition at line 219 of file OpenMapper.h.
List<Edge<T>*> karto::Vertex< T >::m_Edges [private] |
Definition at line 294 of file OpenMapper.h.
T karto::Vertex< T >::m_pObject [private] |
Definition at line 293 of file OpenMapper.h.