![]() |
SUMO - Simulation of Urban MObility
|
#include <NBPTLineCont.h>
Public Member Functions | |
void | addEdges2Keep (const OptionsCont &oc, std::set< std::string > &into) |
add edges that must be kept More... | |
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... | |
std::set< std::string > & | getServedPTStops () |
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... | |
std::set< std::string > | myServedPTStops |
Static Private Attributes | |
static const int | BWD |
static const int | FWD |
Definition at line 28 of file NBPTLineCont.h.
|
private |
Definition of the map of names to pt lines.
Definition at line 66 of file NBPTLineCont.h.
NBPTLineCont::NBPTLineCont | ( | ) |
constructor
Definition at line 40 of file NBPTLineCont.cpp.
NBPTLineCont::~NBPTLineCont | ( | ) |
void NBPTLineCont::addEdges2Keep | ( | const OptionsCont & | oc, |
std::set< std::string > & | into | ||
) |
add edges that must be kept
Definition at line 294 of file NBPTLineCont.cpp.
References OptionsCont::isSet(), and myPTLines.
Referenced by NBRampsComputer::computeRamps(), end(), and NBNodeCont::removeUnwishedNodes().
|
inline |
Returns the pointer to the begin of the stored pt lines.
Definition at line 43 of file NBPTLineCont.h.
References myPTLines.
Referenced by NWWriter_XML::writePTLines().
|
private |
Definition at line 174 of file NBPTLineCont.cpp.
References NBPTLine::addEdgeVector(), NBPTStop::getEdgeId(), NBPTLine::getLineID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBPTLine::getStops(), NBEdgeCont::retrieve(), toString(), and WRITE_WARNING.
Referenced by process().
|
inline |
Returns the pointer to the end of the stored pt lines.
Definition at line 50 of file NBPTLineCont.h.
References addEdges2Keep(), getServedPTStops(), myPTLines, and process().
Referenced by NWWriter_XML::writePTLines().
std::set< std::string > & NBPTLineCont::getServedPTStops | ( | ) |
Definition at line 303 of file NBPTLineCont.cpp.
References myServedPTStops.
Referenced by NBNetBuilder::compute(), and end().
void NBPTLineCont::insert | ( | NBPTLine * | pLine | ) |
insert new line
Definition at line 53 of file NBPTLineCont.cpp.
References myIdCnt, myPTLines, and NBPTLine::setId().
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLineCont::process | ( | NBEdgeCont & | cont | ) |
Definition at line 57 of file NBPTLineCont.cpp.
References constructRoute(), myPTLines, and reviseStops().
Referenced by NBNetBuilder::compute(), and end().
|
private |
Definition at line 70 of file NBPTLineCont.cpp.
References BWD, FWD, NBEdgeCont::getByID(), Named::getID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBPTStopCont::getReverseEdge(), NBPTLine::getStops(), NBPTLine::getWaysNodes(), myServedPTStops, and WRITE_WARNING.
Referenced by process().
|
staticprivate |
Definition at line 63 of file NBPTLineCont.h.
Referenced by reviseStops().
|
staticprivate |
Definition at line 62 of file NBPTLineCont.h.
Referenced by reviseStops().
|
private |
Definition at line 71 of file NBPTLineCont.h.
Referenced by insert().
|
private |
The map of names to pt lines.
Definition at line 69 of file NBPTLineCont.h.
Referenced by addEdges2Keep(), begin(), end(), insert(), process(), and ~NBPTLineCont().
|
private |
Definition at line 75 of file NBPTLineCont.h.
Referenced by getServedPTStops(), and reviseStops().