SUMO - Simulation of Urban MObility
NBPTLineCont Class Reference

#include <NBPTLineCont.h>

Collaboration diagram for NBPTLineCont:
Collaboration graph

Public Member Functions

std::vector< NBPTLine * >::const_iterator begin () const
 Returns the pointer to the begin of the stored pt lines. More...
 
std::vector< NBPTLine * >::const_iterator end () const
 Returns the pointer to the end of the stored pt lines. More...
 
void insert (NBPTLine *pLine)
 insert new line More...
 
 NBPTLineCont ()
 constructor More...
 
void process (NBEdgeCont &cont)
 
 ~NBPTLineCont ()
 destructor More...
 

Private Types

typedef std::vector< NBPTLine * > PTLinesCont
 Definition of the map of names to pt lines. More...
 

Private Member Functions

void constructRoute (NBPTLine *myPTLine, NBEdgeCont &cont)
 
void reviseStops (NBPTLine *myPTLine, NBEdgeCont &cont)
 

Private Attributes

long long int myIdCnt
 
PTLinesCont myPTLines
 The map of names to pt lines. More...
 

Static Private Attributes

static const int BWD
 
static const int FWD
 

Detailed Description

Definition at line 29 of file NBPTLineCont.h.

Member Typedef Documentation

typedef std::vector<NBPTLine*> NBPTLineCont::PTLinesCont
private

Definition of the map of names to pt lines.

Definition at line 62 of file NBPTLineCont.h.

Constructor & Destructor Documentation

NBPTLineCont::NBPTLineCont ( )

constructor

Definition at line 39 of file NBPTLineCont.cpp.

NBPTLineCont::~NBPTLineCont ( )

destructor

Definition at line 44 of file NBPTLineCont.cpp.

References myPTLines.

Member Function Documentation

std::vector<NBPTLine*>::const_iterator NBPTLineCont::begin ( ) const
inline

Returns the pointer to the begin of the stored pt lines.

Returns
The iterator to the beginning of stored pt lines

Definition at line 44 of file NBPTLineCont.h.

References myPTLines.

Referenced by NWWriter_XML::writePTLines().

void NBPTLineCont::constructRoute ( NBPTLine *  myPTLine,
NBEdgeCont &  cont 
)
private
std::vector<NBPTLine*>::const_iterator NBPTLineCont::end ( ) const
inline

Returns the pointer to the end of the stored pt lines.

Returns
The iterator to the end of stored pt lines

Definition at line 51 of file NBPTLineCont.h.

References myPTLines, and process().

Referenced by NWWriter_XML::writePTLines().

void NBPTLineCont::insert ( NBPTLine *  pLine)

insert new line

Definition at line 52 of file NBPTLineCont.cpp.

References myIdCnt, myPTLines, and NBPTLine::setId().

Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().

void NBPTLineCont::process ( NBEdgeCont &  cont)

Definition at line 56 of file NBPTLineCont.cpp.

References constructRoute(), myPTLines, and reviseStops().

Referenced by NBNetBuilder::compute(), and end().

Field Documentation

const int NBPTLineCont::BWD
staticprivate

Definition at line 59 of file NBPTLineCont.h.

Referenced by reviseStops().

const int NBPTLineCont::FWD
staticprivate

Definition at line 58 of file NBPTLineCont.h.

Referenced by reviseStops().

long long int NBPTLineCont::myIdCnt
private

Definition at line 67 of file NBPTLineCont.h.

Referenced by insert().

PTLinesCont NBPTLineCont::myPTLines
private

The map of names to pt lines.

Definition at line 65 of file NBPTLineCont.h.

Referenced by begin(), end(), insert(), process(), and ~NBPTLineCont().


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