SUMO - Simulation of Urban MObility
IntermodalNetwork< E, L, N, V > Class Template Reference

the pedestrian network storing edges, connections and the mappings to the "real" edges More...

#include <IntermodalNetwork.h>

Collaboration diagram for IntermodalNetwork< E, L, N, V >:
Collaboration graph

Public Member Functions

void addConnectors (_IntermodalEdge *const depConn, _IntermodalEdge *const arrConn, const int splitIndex)
 
void addEdge (_IntermodalEdge *edge)
 
const std::vector< _IntermodalEdge * > & getAllEdges ()
 
_IntermodalEdgegetArrivalEdge (const E *e, const double pos=-1.)
 Returns the arriving Intermodal edge. More...
 
const EdgePairgetBothDirections (const E *e)
 Returns the pair of forward and backward edge. More...
 
_IntermodalEdgegetDepartEdge (const E *e, const double pos=-1.)
 Returns the departing Intermodal edge. More...
 
 IntermodalNetwork (const std::vector< E *> &edges, int numericalID=0)
 
 ~IntermodalNetwork ()
 

Private Types

typedef IntermodalEdge< E, L, N, V > _IntermodalEdge
 
typedef PedestrianEdge< E, L, N, V > _PedestrianEdge
 
typedef std::pair< _IntermodalEdge *, _IntermodalEdge * > EdgePair
 

Private Attributes

std::map< const E *, std::vector< _IntermodalEdge * > > myArrivalLookup
 retrieve the arrival edges for the given input edge E More...
 
std::map< const E *, EdgePairmyBidiLookup
 retrieve the forward and backward edge for the given input edge E More...
 
std::map< const E *, std::vector< _IntermodalEdge * > > myDepartLookup
 retrieve the depart edges for the given input edge E More...
 
std::vector< _IntermodalEdge * > myEdges
 the edge dictionary More...
 

Detailed Description

template<class E, class L, class N, class V>
class IntermodalNetwork< E, L, N, V >

the pedestrian network storing edges, connections and the mappings to the "real" edges

Definition at line 52 of file IntermodalNetwork.h.

Member Typedef Documentation

◆ _IntermodalEdge

template<class E , class L , class N , class V >
typedef IntermodalEdge<E, L, N, V> IntermodalNetwork< E, L, N, V >::_IntermodalEdge
private

Definition at line 54 of file IntermodalNetwork.h.

◆ _PedestrianEdge

template<class E , class L , class N , class V >
typedef PedestrianEdge<E, L, N, V> IntermodalNetwork< E, L, N, V >::_PedestrianEdge
private

Definition at line 55 of file IntermodalNetwork.h.

◆ EdgePair

template<class E , class L , class N , class V >
typedef std::pair<_IntermodalEdge*, _IntermodalEdge*> IntermodalNetwork< E, L, N, V >::EdgePair
private

Definition at line 56 of file IntermodalNetwork.h.

Constructor & Destructor Documentation

◆ IntermodalNetwork()

◆ ~IntermodalNetwork()

template<class E , class L , class N , class V >
IntermodalNetwork< E, L, N, V >::~IntermodalNetwork ( )
inline

Definition at line 213 of file IntermodalNetwork.h.

References IntermodalNetwork< E, L, N, V >::myEdges.

Member Function Documentation

◆ addConnectors()

template<class E , class L , class N , class V >
void IntermodalNetwork< E, L, N, V >::addConnectors ( _IntermodalEdge *const  depConn,
_IntermodalEdge *const  arrConn,
const int  splitIndex 
)
inline

◆ addEdge()

◆ getAllEdges()

◆ getArrivalEdge()

◆ getBothDirections()

◆ getDepartEdge()

Field Documentation

◆ myArrivalLookup

template<class E , class L , class N , class V >
std::map<const E*, std::vector<_IntermodalEdge*> > IntermodalNetwork< E, L, N, V >::myArrivalLookup
private

◆ myBidiLookup

template<class E , class L , class N , class V >
std::map<const E*, EdgePair> IntermodalNetwork< E, L, N, V >::myBidiLookup
private

retrieve the forward and backward edge for the given input edge E

Definition at line 285 of file IntermodalNetwork.h.

Referenced by IntermodalNetwork< E, L, N, V >::getBothDirections(), and IntermodalNetwork< E, L, N, V >::IntermodalNetwork().

◆ myDepartLookup

template<class E , class L , class N , class V >
std::map<const E*, std::vector<_IntermodalEdge*> > IntermodalNetwork< E, L, N, V >::myDepartLookup
private

◆ myEdges

template<class E , class L , class N , class V >
std::vector<_IntermodalEdge*> IntermodalNetwork< E, L, N, V >::myEdges
private

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