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

#include <Mapper.h>

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 209 of file Mapper.h.

Constructor & Destructor Documentation

◆ Vertex()

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

Constructs a vertex representing the given object

Parameters
pObject

Definition at line 218 of file Mapper.h.

◆ ~Vertex()

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

Destructor

Definition at line 226 of file Mapper.h.

Member Function Documentation

◆ AddEdge()

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 280 of file Mapper.h.

◆ GetAdjacentVertices()

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 252 of file Mapper.h.

◆ GetEdges()

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 234 of file Mapper.h.

◆ GetObject()

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

Gets the object associated with this vertex

Returns
the object

Definition at line 243 of file Mapper.h.

Friends And Related Function Documentation

◆ Edge< T >

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

Definition at line 211 of file Mapper.h.

Member Data Documentation

◆ m_Edges

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

Definition at line 286 of file Mapper.h.

◆ m_pObject

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

Definition at line 285 of file Mapper.h.


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


open_karto
Author(s):
autogenerated on Tue Jul 23 2024 02:26:00