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

#include <OpenMapper.h>

Public Member Functions

 Edge (Vertex< T > *pSource, Vertex< T > *pTarget)
 
EdgeLabelGetLabel ()
 
Vertex< T > * GetSource () const
 
Vertex< T > * GetTarget () const
 
void SetLabel (EdgeLabel *pLabel)
 
virtual ~Edge ()
 

Private Attributes

EdgeLabelm_pLabel
 
Vertex< T > * m_pSource
 
Vertex< T > * m_pTarget
 

Detailed Description

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

Represents an edge in a graph

Definition at line 211 of file OpenMapper.h.

Constructor & Destructor Documentation

template<typename T>
karto::Edge< T >::Edge ( Vertex< T > *  pSource,
Vertex< T > *  pTarget 
)
inline

Constructs an edge from the source to target vertex

Parameters
pSourcesource vertex
pTargettarget vertex

Definition at line 313 of file OpenMapper.h.

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

Destructor

Definition at line 325 of file OpenMapper.h.

Member Function Documentation

template<typename T>
EdgeLabel* karto::Edge< T >::GetLabel ( )
inline

Gets the link info

Returns
link info

Definition at line 360 of file OpenMapper.h.

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

Gets the source vertex

Returns
source vertex

Definition at line 342 of file OpenMapper.h.

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

Gets the target vertex

Returns
target vertex

Definition at line 351 of file OpenMapper.h.

template<typename T>
void karto::Edge< T >::SetLabel ( EdgeLabel pLabel)
inline

Sets the link payload

Parameters
pLabeledge label

Definition at line 369 of file OpenMapper.h.

Member Data Documentation

template<typename T>
EdgeLabel* karto::Edge< T >::m_pLabel
private

Definition at line 377 of file OpenMapper.h.

template<typename T>
Vertex<T>* karto::Edge< T >::m_pSource
private

Definition at line 375 of file OpenMapper.h.

template<typename T>
Vertex<T>* karto::Edge< T >::m_pTarget
private

Definition at line 376 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:25