![]() |
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 | Direction { DIR_RIGHTMOST, DIR_LEFTMOST, DIR_FORWARD } |
enum of possible directions More... | |
Public Member Functions | |
bool | empty () const |
returns the information whether no following street has a higher priority More... | |
int | getStraightest () const |
returns the index of the straightmost among the given outgoing edges More... | |
bool | includes (Direction d) const |
returns the information whether the street in the given direction has a higher priority More... | |
MainDirections (const EdgeVector &outgoing, NBEdge *parent, NBNode *to, const std::vector< int > &availableLanes) | |
constructor More... | |
~MainDirections () | |
destructor More... | |
Private Member Functions | |
MainDirections (const MainDirections &) | |
Invalidated copy constructor. More... | |
MainDirections & | operator= (const MainDirections &) |
Invalidated assignment operator. More... | |
Private Attributes | |
std::vector< Direction > | myDirs |
list of the main direction within the following junction relative to the edge More... | |
int | myStraightest |
the index of the straightmost among the given outgoing edges More... | |
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.
NBEdge::MainDirections::MainDirections | ( | const EdgeVector & | outgoing, |
NBEdge * | parent, | ||
NBNode * | to, | ||
const std::vector< int > & | availableLanes | ||
) |
constructor
Definition at line 180 of file NBEdge.cpp.
References DEBUGCOND2, DIR_FORWARD, DIR_LEFTMOST, DIR_RIGHTMOST, NBNode::getDirection(), NBEdge::getID(), NBEdge::getJunctionPriority(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getPriority(), NBNode::getType(), NBNode::isTrafficLight(), LINKDIR_PARTLEFT, LINKDIR_PARTRIGHT, LINKDIR_STRAIGHT, myDirs, NBEdge::myLanes, myStraightest, and toString().
NBEdge::MainDirections::~MainDirections | ( | ) |
destructor
Definition at line 236 of file NBEdge.cpp.
|
private |
Invalidated copy constructor.
bool NBEdge::MainDirections::empty | ( | ) | const |
returns the information whether no following street has a higher priority
Definition at line 240 of file NBEdge.cpp.
References myDirs.
Referenced by NBEdge::prepareEdgePriorities().
|
inline |
returns the index of the straightmost among the given outgoing edges
Definition at line 1428 of file NBEdge.h.
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 246 of file NBEdge.cpp.
References myDirs.
Referenced by NBEdge::prepareEdgePriorities().
|
private |
Invalidated assignment operator.
|
private |
list of the main direction within the following junction relative to the edge
Definition at line 1443 of file NBEdge.h.
Referenced by empty(), includes(), and MainDirections().
|
private |
the index of the straightmost among the given outgoing edges
Definition at line 1440 of file NBEdge.h.
Referenced by MainDirections().