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.

References myOriginal.

Referenced by FlippedEdge< E, N, V >::FlippedEdge(), getBidiEdge(), getTravelTimeStatic(), and init().

Here is the caller graph for this function:

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 myOriginal, and ReversedEdge().

◆ 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 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 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 myOriginal.

◆ getOriginalEdge()

◆ getTravelTimeStatic()

template<class E, class V>
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 myOriginal, and ReversedEdge().

Referenced by computeRoutes().

Here is the caller graph for this function:

◆ 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 myClassesViaSuccessorMap, myOriginal, myViaSuccessors, SVC_IGNORING, and UNUSED_PARAMETER.

Referenced by init().

Here is the caller graph for this function:

◆ init()

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

Definition at line 38 of file ReversedEdge.h.

References getViaSuccessors(), myOriginal, myViaSuccessors, and ReversedEdge().

◆ isInternal()

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

Definition at line 84 of file ReversedEdge.h.

References myOriginal.

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

Here is the caller graph for this function:

◆ 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 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 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 getViaSuccessors().

◆ myOriginal

template<class E, class V>
const E* const ReversedEdge< E, V >::myOriginal
private

◆ myViaSuccessors

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

Definition at line 129 of file ReversedEdge.h.

Referenced by getViaSuccessors(), and init().


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