Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
ReversedEdge< E, V > Class Template Reference

the edge type representing backward edges More...

#include <ReversedEdge.h>

Inheritance diagram for ReversedEdge< E, V >:
[legend]

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.
 
double getLength () const
 Returns the length of the edge.
 
int getNumericalID () const
 Returns the index (numeric id) of the edge.
 
const E * getOriginalEdge () const
 Returns the original edge.
 
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.
 
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 31 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 33 of file ReversedEdge.h.

Constructor & Destructor Documentation

◆ ReversedEdge()

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

Definition at line 35 of file ReversedEdge.h.

Member Function Documentation

◆ getBidiEdge()

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

Definition at line 80 of file ReversedEdge.h.

References ReversedEdge< E, V >::getBidiEdge(), and ReversedEdge< E, V >::myOriginal.

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

Here is the caller graph for this function:

◆ 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 69 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 76 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 62 of file ReversedEdge.h.

References ReversedEdge< E, V >::myOriginal.

◆ getOriginalEdge()

◆ 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 96 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 100 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 84 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 88 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 92 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 127 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: