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

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

Inheritance diagram for NBEdge::ToEdgeConnectionsAdder:
[legend]
Collaboration diagram for NBEdge::ToEdgeConnectionsAdder:
[legend]

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 1591 of file NBEdge.h.

Constructor & Destructor Documentation

◆ ToEdgeConnectionsAdder() [1/2]

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

constructor

Definition at line 1601 of file NBEdge.h.

References myTransitions.

Referenced by operator=(), and ToEdgeConnectionsAdder().

Here is the caller graph for this function:

◆ ~ToEdgeConnectionsAdder()

NBEdge::ToEdgeConnectionsAdder::~ToEdgeConnectionsAdder ( )
inline

destructor

Definition at line 1605 of file NBEdge.h.

◆ ToEdgeConnectionsAdder() [2/2]

NBEdge::ToEdgeConnectionsAdder::ToEdgeConnectionsAdder ( const ToEdgeConnectionsAdder & )
privatedelete

Invalidated copy constructor.

References ToEdgeConnectionsAdder().

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 142 of file NBEdge.cpp.

References myConnections, myTransitions, and NBEdge::NBEdge().

◆ getBuiltConnections()

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

get built connections

Definition at line 1611 of file NBEdge.h.

References myConnections.

Referenced by NBEdge::divideSelectedLanesOnEdges().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References ToEdgeConnectionsAdder().

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

Referenced by execute(), and getBuiltConnections().

◆ myTransitions

const EdgeVector& NBEdge::ToEdgeConnectionsAdder::myTransitions
private

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

Definition at line 1597 of file NBEdge.h.

Referenced by execute(), and ToEdgeConnectionsAdder().


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