karto::Vertex< T > Class Template Reference

#include <Mapper.h>

List of all members.

Public Member Functions

std::vector< Vertex< T > * > GetAdjacentVertices () const
const std::vector< Edge< T > * > & GetEdges () const
T * GetObject () const
 Vertex (T *pObject)
virtual ~Vertex ()

Private Member Functions

void AddEdge (Edge< T > *pEdge)

Private Attributes

std::vector< Edge< T > * > m_Edges
T * m_pObject

Friends

class Edge< T >

Detailed Description

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

Represents an object in a graph

Definition at line 176 of file Mapper.h.


Constructor & Destructor Documentation

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

Constructs a vertex representing the given object

Parameters:
pObject 

Definition at line 185 of file Mapper.h.

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

Destructor

Definition at line 193 of file Mapper.h.


Member Function Documentation

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

Adds the given edge to this vertex's edge list

Parameters:
pEdge edge to add

Definition at line 247 of file Mapper.h.

template<typename T>
std::vector<Vertex<T>*> karto::Vertex< T >::GetAdjacentVertices (  )  const [inline]

Gets a vector of the vertices adjacent to this vertex

Returns:
adjacent vertices

Definition at line 219 of file Mapper.h.

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

Gets edges adjacent to this vertex

Returns:
adjacent edges

Definition at line 201 of file Mapper.h.

template<typename T>
T* karto::Vertex< T >::GetObject (  )  const [inline]

Gets the object associated with this vertex

Returns:
the object

Definition at line 210 of file Mapper.h.


Friends And Related Function Documentation

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

Definition at line 178 of file Mapper.h.


Member Data Documentation

template<typename T>
std::vector<Edge<T>*> karto::Vertex< T >::m_Edges [private]

Definition at line 253 of file Mapper.h.

template<typename T>
T* karto::Vertex< T >::m_pObject [private]

Definition at line 252 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:06 2013