SUMO - Simulation of Urban MObility
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...

Collaboration diagram for NBEdge::MainDirections:
Collaboration graph

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...
 
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, int indexOfStraightest)
 constructor More...
 
 ~MainDirections ()
 destructor More...
 

Data Fields

std::vector< DirectionmyDirs
 list of the main direction within the following junction relative to the edge More...
 

Private Member Functions

 MainDirections (const MainDirections &)
 Invalidated copy constructor. More...
 
MainDirectionsoperator= (const MainDirections &)
 Invalidated assignment operator. More...
 

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 1344 of file NBEdge.h.

Member Enumeration Documentation

◆ Direction

enum of possible directions

Enumerator
DIR_RIGHTMOST 
DIR_LEFTMOST 
DIR_FORWARD 

Definition at line 1347 of file NBEdge.h.

Constructor & Destructor Documentation

◆ MainDirections() [1/2]

NBEdge::MainDirections::MainDirections ( const EdgeVector outgoing,
NBEdge parent,
NBNode to,
int  indexOfStraightest 
)

◆ ~MainDirections()

NBEdge::MainDirections::~MainDirections ( )

destructor

Definition at line 226 of file NBEdge.cpp.

◆ MainDirections() [2/2]

NBEdge::MainDirections::MainDirections ( const MainDirections )
private

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

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

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myDirs

std::vector<Direction> NBEdge::MainDirections::myDirs

list of the main direction within the following junction relative to the edge

Definition at line 1350 of file NBEdge.h.

Referenced by NBEdge::prepareEdgePriorities().


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