SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NBEdge::ToEdgeConnectionsAdder Class Reference
Inheritance diagram for NBEdge::ToEdgeConnectionsAdder:
Bresenham::BresenhamCallBack

Public Member Functions

void execute (const unsigned int lane, const unsigned int virtEdge)
 executes a bresenham - step More...
 
const std::map< NBEdge
*, std::vector< unsigned int > > & 
getBuiltConnections () const
 
 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< unsigned 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

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

Definition at line 1021 of file NBEdge.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 1031 of file NBEdge.h.

NBEdge::ToEdgeConnectionsAdder::~ToEdgeConnectionsAdder ( )
inline

destructor

Definition at line 1035 of file NBEdge.h.

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

Invalidated copy constructor.

Member Function Documentation

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

executes a bresenham - step

Implements Bresenham::BresenhamCallBack.

Definition at line 76 of file NBEdge.cpp.

References myConnections, and myTransitions.

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

Definition at line 1040 of file NBEdge.h.

References myConnections.

Referenced by NBEdge::divideOnEdges().

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

Invalidated assignment operator.

Field Documentation

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

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

Definition at line 1024 of file NBEdge.h.

Referenced by execute(), and getBuiltConnections().

const EdgeVector& NBEdge::ToEdgeConnectionsAdder::myTransitions
private

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

Definition at line 1027 of file NBEdge.h.

Referenced by execute().


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