SUMO - Simulation of Urban MObility
NBPTStopCont Class Reference

#include <NBPTStopCont.h>

Collaboration diagram for NBPTStopCont:
Collaboration graph

Public Member Functions

std::map< std::string, NBPTStop * >::const_iterator begin () const
 Returns the pointer to the begin of the stored pt stops. More...
 
std::map< std::string, NBPTStop * >::const_iterator end () const
 Returns the pointer to the end of the stored pt stops. More...
 
bool insert (NBPTStop *ptStop)
 Inserts a node into the map. More...
 
void process (NBEdgeCont &cont)
 
int size () const
 Returns the number of pt stops stored in this container. More...
 

Private Types

typedef std::map< std::string, NBPTStop * > PTStopsCont
 Definition of the map of names to pt stops. More...
 

Private Attributes

PTStopsCont myPTStops
 The map of names to pt stops. More...
 

Detailed Description

Definition at line 30 of file NBPTStopCont.h.

Member Typedef Documentation

◆ PTStopsCont

typedef std::map<std::string, NBPTStop*> NBPTStopCont::PTStopsCont
private

Definition of the map of names to pt stops.

Definition at line 64 of file NBPTStopCont.h.

Member Function Documentation

◆ begin()

std::map<std::string, NBPTStop*>::const_iterator NBPTStopCont::begin ( ) const
inline

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

Returns
The iterator to the beginning of stored pt stops

Definition at line 48 of file NBPTStopCont.h.

References myPTStops.

Referenced by NBNetBuilder::moveToOrigin(), and NWWriter_XML::writePTStops().

◆ end()

std::map<std::string, NBPTStop*>::const_iterator NBPTStopCont::end ( ) const
inline

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

Returns
The iterator to the end of stored pt stops

Definition at line 56 of file NBPTStopCont.h.

References myPTStops, and process().

Referenced by NBNetBuilder::moveToOrigin(), and NWWriter_XML::writePTStops().

◆ insert()

bool NBPTStopCont::insert ( NBPTStop ptStop)

Inserts a node into the map.

Parameters
[in]stopThe pt stop to insert
Returns
Whether the pt stop could be added

Definition at line 27 of file NBPTStopCont.cpp.

References NBPTStop::getID(), and myPTStops.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ process()

◆ size()

int NBPTStopCont::size ( ) const
inline

Returns the number of pt stops stored in this container.

Definition at line 41 of file NBPTStopCont.h.

References myPTStops.

Field Documentation

◆ myPTStops

PTStopsCont NBPTStopCont::myPTStops
private

The map of names to pt stops.

Definition at line 67 of file NBPTStopCont.h.

Referenced by begin(), end(), insert(), process(), and size().


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