Eclipse SUMO - Simulation of Urban MObility
ReversedEdge< E, V > Class Template Reference

the edge type representing backward edges More...

#include <ReversedEdge.h>

Public Types

typedef std::vector< std::pair< const ReversedEdge< E, V > *, const ReversedEdge< E, V > * > > ConstEdgePairVector
 

Public Member Functions

const ReversedEdgegetBidiEdge () const
 
const std::string & getID () const
 Returns the id of the edge. More...
 
double getLength () const
 Returns the length of the edge. More...
 
int getNumericalID () const
 Returns the index (numeric id) of the edge. More...
 
const ConstEdgePairVectorgetViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING, bool ignoreTransientPermissions=false) const
 
void init ()
 
bool isInternal () const
 
bool prohibits (const V *const vehicle) const
 
bool restricts (const V *const vehicle) const
 
 ReversedEdge (const E *orig)
 

Static Public Member Functions

static double getTravelTimeStatic (const ReversedEdge< E, V > *const edge, const V *const veh, double time)
 

Private Attributes

std::map< SUMOVehicleClass, ConstEdgePairVectormyClassesViaSuccessorMap
 The successors available for a given vClass. More...
 
const E *const myOriginal
 
ConstEdgePairVector myViaSuccessors
 

Detailed Description

template<class E, class V>
class ReversedEdge< E, V >

the edge type representing backward edges

Definition at line 30 of file ReversedEdge.h.

Member Typedef Documentation

◆ ConstEdgePairVector

template<class E , class V >
typedef std::vector<std::pair<const ReversedEdge<E, V>*, const ReversedEdge<E, V>*> > ReversedEdge< E, V >::ConstEdgePairVector

Definition at line 32 of file ReversedEdge.h.

Constructor & Destructor Documentation

◆ ReversedEdge()

template<class E , class V >
ReversedEdge< E, V >::ReversedEdge ( const E *  orig)
inline

Definition at line 34 of file ReversedEdge.h.

Member Function Documentation

◆ getBidiEdge()

template<class E , class V >
const ReversedEdge* ReversedEdge< E, V >::getBidiEdge ( ) const
inline

Definition at line 74 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getID()

template<class E , class V >
const std::string& ReversedEdge< E, V >::getID ( ) const
inline

Returns the id of the edge.

Returns
The original edge's id

Definition at line 63 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getLength()

template<class E , class V >
double ReversedEdge< E, V >::getLength ( ) const
inline

Returns the length of the edge.

Returns
The original edge's length

Definition at line 70 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getNumericalID()

template<class E , class V >
int ReversedEdge< E, V >::getNumericalID ( ) const
inline

Returns the index (numeric id) of the edge.

Returns
The original edge's numerical id

Definition at line 56 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getTravelTimeStatic()

template<class E , class V >
static double ReversedEdge< E, V >::getTravelTimeStatic ( const ReversedEdge< E, V > *const  edge,
const V *const  veh,
double  time 
)
inlinestatic

Definition at line 90 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getViaSuccessors()

template<class E , class V >
const ConstEdgePairVector& ReversedEdge< E, V >::getViaSuccessors ( SUMOVehicleClass  vClass = SVC_IGNORING,
bool  ignoreTransientPermissions = false 
) const
inline

Definition at line 94 of file ReversedEdge.h.

References ReversedEdge< E, V >::myClassesViaSuccessorMap, ReversedEdge< E, V >::myOriginal, ReversedEdge< E, V >::myViaSuccessors, SVC_IGNORING, and UNUSED_PARAMETER.

Referenced by ReversedEdge< E, V >::init().

Here is the caller graph for this function:

◆ init()

template<class E , class V >
void ReversedEdge< E, V >::init ( )
inline

◆ isInternal()

template<class E , class V >
bool ReversedEdge< E, V >::isInternal ( ) const
inline

Definition at line 78 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ prohibits()

template<class E , class V >
bool ReversedEdge< E, V >::prohibits ( const V *const  vehicle) const
inline

Definition at line 82 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ restricts()

template<class E , class V >
bool ReversedEdge< E, V >::restricts ( const V *const  vehicle) const
inline

Definition at line 86 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

Field Documentation

◆ myClassesViaSuccessorMap

template<class E , class V >
std::map<SUMOVehicleClass, ConstEdgePairVector> ReversedEdge< E, V >::myClassesViaSuccessorMap
mutableprivate

The successors available for a given vClass.

Definition at line 121 of file ReversedEdge.h.

Referenced by ReversedEdge< E, V >::getViaSuccessors().

◆ myOriginal

◆ myViaSuccessors

template<class E , class V >
ConstEdgePairVector ReversedEdge< E, V >::myViaSuccessors
mutableprivate

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