Eclipse SUMO - Simulation of Urban MObility
NBEdge::ToEdgeConnectionsAdder Class Reference

A class that being a bresenham-callback assigns the incoming lanes to the edges. More...

Inheritance diagram for NBEdge::ToEdgeConnectionsAdder:
Collaboration diagram for NBEdge::ToEdgeConnectionsAdder:

Public Member Functions

void execute (const int lane, const int virtEdge)
 executes a bresenham - step More...
 
const std::map< NBEdge *, std::vector< int > > & getBuiltConnections () const
 get built connections More...
 
 ToEdgeConnectionsAdder (const EdgeVector &transitions)
 constructor More...
 
 ~ToEdgeConnectionsAdder ()
 destructor More...
 

Private Member Functions

ToEdgeConnectionsAdderoperator= (const ToEdgeConnectionsAdder &)
 Invalidated assignment operator. More...
 
 ToEdgeConnectionsAdder (const ToEdgeConnectionsAdder &)
 Invalidated copy constructor. More...
 

Private Attributes

std::map< NBEdge *, std::vector< int > > myConnections
 map of edges to this edge's lanes that reach them More...
 
const EdgeVectormyTransitions
 the transition from the virtual lane to the edge it belongs to More...
 

Detailed Description

A class that being a bresenham-callback assigns the incoming lanes to the edges.

Definition at line 1375 of file NBEdge.h.

Constructor & Destructor Documentation

◆ ToEdgeConnectionsAdder() [1/2]

NBEdge::ToEdgeConnectionsAdder::ToEdgeConnectionsAdder ( const EdgeVector transitions)
inline

constructor

Definition at line 1385 of file NBEdge.h.

◆ ~ToEdgeConnectionsAdder()

NBEdge::ToEdgeConnectionsAdder::~ToEdgeConnectionsAdder ( )
inline

destructor

Definition at line 1389 of file NBEdge.h.

◆ ToEdgeConnectionsAdder() [2/2]

NBEdge::ToEdgeConnectionsAdder::ToEdgeConnectionsAdder ( const ToEdgeConnectionsAdder )
private

Invalidated copy constructor.

Member Function Documentation

◆ execute()

void NBEdge::ToEdgeConnectionsAdder::execute ( const int  lane,
const int  virtEdge 
)
virtual

executes a bresenham - step

Implements Bresenham::BresenhamCallBack.

Definition at line 149 of file NBEdge.cpp.

References NBEdge::myConnections.

◆ getBuiltConnections()

const std::map<NBEdge*, std::vector<int> >& NBEdge::ToEdgeConnectionsAdder::getBuiltConnections ( ) const
inline

get built connections

Definition at line 1395 of file NBEdge.h.

Referenced by NBEdge::divideSelectedLanesOnEdges().

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myConnections

std::map<NBEdge*, std::vector<int> > NBEdge::ToEdgeConnectionsAdder::myConnections
private

map of edges to this edge's lanes that reach them

Definition at line 1378 of file NBEdge.h.

◆ myTransitions

const EdgeVector& NBEdge::ToEdgeConnectionsAdder::myTransitions
private

the transition from the virtual lane to the edge it belongs to

Definition at line 1381 of file NBEdge.h.


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