Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBEdge::MainDirections Class Reference

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.
 
MainDirectionsoperator= (const MainDirections &)=delete
 Invalidated assignment operator.
 

Private Attributes

std::vector< DirectionmyDirs
 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
 

Detailed Description

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.

Definition at line 1608 of file NBEdge.h.

Member Enumeration Documentation

◆ Direction

enum of possible directions

Enumerator
RIGHTMOST 
LEFTMOST 
FORWARD 

Definition at line 1611 of file NBEdge.h.

Constructor & Destructor Documentation

◆ MainDirections() [1/2]

NBEdge::MainDirections::MainDirections ( const EdgeVector outgoing,
NBEdge parent,
NBNode to,
const std::vector< int > &  availableLanes 
)

◆ ~MainDirections()

NBEdge::MainDirections::~MainDirections ( )

destructor

Definition at line 226 of file NBEdge.cpp.

◆ MainDirections() [2/2]

NBEdge::MainDirections::MainDirections ( const MainDirections )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ empty()

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

Here is the caller graph for this function:

◆ getStraightest()

int NBEdge::MainDirections::getStraightest ( ) const
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().

Here is the caller graph for this function:

◆ includes()

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

Here is the caller graph for this function:

◆ operator=()

MainDirections & NBEdge::MainDirections::operator= ( const MainDirections )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myDirs

std::vector<Direction> NBEdge::MainDirections::myDirs
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().

◆ myStraightest

int NBEdge::MainDirections::myStraightest
private

the index of the straightmost among the given outgoing edges

Definition at line 1637 of file NBEdge.h.

Referenced by getStraightest(), and MainDirections().


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