Public Member Functions | Private Member Functions | Private Attributes | Friends
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 207 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 216 of file Mapper.h.

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

Destructor

Definition at line 224 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:
pEdgeedge to add

Definition at line 278 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 250 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 232 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 241 of file Mapper.h.


Friends And Related Function Documentation

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

Definition at line 209 of file Mapper.h.


Member Data Documentation

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

Definition at line 284 of file Mapper.h.

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

Definition at line 283 of file Mapper.h.


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


open_karto
Author(s):
autogenerated on Thu Jun 6 2019 21:02:57