Eclipse SUMO - Simulation of Urban MObility
|
Holds (- relative to the edge it is build from -!!!) the list of main directions a vehicle that drives on this street may take on the junction the edge ends in The back direction is not regarded. More...
Public Types | |
enum class | Direction { RIGHTMOST , LEFTMOST , FORWARD } |
enum of possible directions More... | |
Public Member Functions | |
bool | empty () const |
returns the information whether no following street has a higher priority | |
int | getStraightest () const |
returns the index of the straightmost among the given outgoing edges | |
bool | includes (Direction d) const |
returns the information whether the street in the given direction has a higher priority | |
MainDirections (const EdgeVector &outgoing, NBEdge *parent, NBNode *to, const std::vector< int > &availableLanes) | |
constructor | |
~MainDirections () | |
destructor | |
Private Member Functions | |
MainDirections (const MainDirections &)=delete | |
Invalidated copy constructor. | |
MainDirections & | operator= (const MainDirections &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
std::vector< Direction > | myDirs |
list of the main direction within the following junction relative to the edge | |
int | myStraightest |
the index of the straightmost among the given outgoing edges | |
Holds (- relative to the edge it is build from -!!!) the list of main directions a vehicle that drives on this street may take on the junction the edge ends in The back direction is not regarded.
|
strong |
NBEdge::MainDirections::MainDirections | ( | const EdgeVector & | outgoing, |
NBEdge * | parent, | ||
NBNode * | to, | ||
const std::vector< int > & | availableLanes | ||
) |
constructor
Definition at line 173 of file NBEdge.cpp.
References DEBUGCOND2, FORWARD, NBNode::getDirection(), NBEdge::getID(), NBEdge::getJunctionPriority(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getPriority(), NBNode::getType(), NBNode::isTrafficLight(), LEFTMOST, myDirs, NBEdge::myLanes, myStraightest, PARTLEFT, PARTRIGHT, RIGHTMOST, STRAIGHT, and toString().
NBEdge::MainDirections::~MainDirections | ( | ) |
destructor
Definition at line 226 of file NBEdge.cpp.
|
privatedelete |
Invalidated copy constructor.
bool NBEdge::MainDirections::empty | ( | ) | const |
returns the information whether no following street has a higher priority
Definition at line 230 of file NBEdge.cpp.
Referenced by NBEdge::prepareEdgePriorities().
|
inline |
returns the index of the straightmost among the given outgoing edges
Definition at line 1625 of file NBEdge.h.
References myStraightest.
Referenced by NBEdge::prepareEdgePriorities().
bool NBEdge::MainDirections::includes | ( | Direction | d | ) | const |
returns the information whether the street in the given direction has a higher priority
Definition at line 236 of file NBEdge.cpp.
Referenced by NBEdge::prepareEdgePriorities().
|
privatedelete |
Invalidated assignment operator.
|
private |
list of the main direction within the following junction relative to the edge
Definition at line 1640 of file NBEdge.h.
Referenced by MainDirections().
|
private |
the index of the straightmost among the given outgoing edges
Definition at line 1637 of file NBEdge.h.
Referenced by getStraightest(), and MainDirections().