Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::GraphEdge Class Reference

A graph edge. More...

#include <GraphEdge.h>

Public Member Functions

 GraphEdge ()
 Constructor.
 
 ~GraphEdge ()
 Destructor.
 
void setNeighbor (GraphVertex *v)
 Set's the neighboring vertex. More...
 
void setDistance (float d)
 Sets the distance between the vertices. More...
 
float getDistance () const
 Reports the distance between the vertices connected by this edge. More...
 
GraphVertexgetNeighbor () const
 Returns the first attached GraphVertex. More...
 

Protected Attributes

float _distance
 The distance between the two vertices connected by this edge.
 
GraphVertex_nbr
 A pointer to the first graph vertex connected by this edge.
 

Detailed Description

A graph edge.

Member Function Documentation

float Menge::GraphEdge::getDistance ( ) const
inline

Reports the distance between the vertices connected by this edge.

Returns
The length of this edge.
GraphVertex* Menge::GraphEdge::getNeighbor ( ) const
inline

Returns the first attached GraphVertex.

Returns
A pointer to the first graph vertex.
void Menge::GraphEdge::setDistance ( float  d)
inline

Sets the distance between the vertices.

Parameters
dThe distance between the two vertices.
void Menge::GraphEdge::setNeighbor ( GraphVertex v)
inline

Set's the neighboring vertex.

Parameters
vThe first connected vertex.

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