Eclipse SUMO - Simulation of Urban MObility
|
Container for junctions; performs operations on all stored junctions. More...
#include <MSJunctionControl.h>
Public Types | |
typedef std::map< std::string, MSJunction * > | IDMap |
Definition of the key to pointer map type. | |
Public Member Functions | |
bool | add (const std::string &id, MSJunction * item) |
Adds an item. | |
IDMap::const_iterator | begin () const |
Returns a reference to the begin iterator for the internal map. | |
bool | changeID (const std::string &oldId, const std::string &newId) |
change ID of a stored object | |
void | clear () |
Removes all items from the container (deletes them, too) | |
IDMap::const_iterator | end () const |
Returns a reference to the end iterator for the internal map. | |
MSJunction * | get (const std::string &id) const |
Retrieves an item. | |
void | insertIDs (std::vector< std::string > &into) const |
MSJunctionControl () | |
Constructor. | |
void | postloadInitContainer () |
Closes building of junctions. | |
bool | remove (const std::string &id, const bool del=true) |
Removes an item. | |
int | size () const |
Returns the number of stored items within the container. | |
~MSJunctionControl () | |
Destructor. | |
Private Member Functions | |
MSJunctionControl (const MSJunctionControl &) | |
Invalidated copy constructor. | |
MSJunctionControl & | operator= (const MSJunctionControl &) |
Invalidated assignment operator. | |
Private Attributes | |
IDMap | myMap |
The map from key to object. | |
Container for junctions; performs operations on all stored junctions.
Definition at line 42 of file MSJunctionControl.h.
|
inherited |
Definition of the key to pointer map type.
Definition at line 44 of file NamedObjectCont.h.
MSJunctionControl::MSJunctionControl | ( | ) |
Constructor.
Definition at line 33 of file MSJunctionControl.cpp.
MSJunctionControl::~MSJunctionControl | ( | ) |
Destructor.
Definition at line 37 of file MSJunctionControl.cpp.
|
private |
Invalidated copy constructor.
|
inlineinherited |
Adds an item.
If another item with the same name is already known, false is reported and the item is not added.
[in] | id | The id of the item to add |
[in] | item | The item to add |
Definition at line 66 of file NamedObjectCont.h.
|
inlineinherited |
Returns a reference to the begin iterator for the internal map.
Definition at line 146 of file NamedObjectCont.h.
|
inlineinherited |
change ID of a stored object
Definition at line 132 of file NamedObjectCont.h.
|
inlineinherited |
Removes all items from the container (deletes them, too)
Definition at line 110 of file NamedObjectCont.h.
|
inlineinherited |
Returns a reference to the end iterator for the internal map.
Definition at line 151 of file NamedObjectCont.h.
|
inlineinherited |
Retrieves an item.
Returns 0 when no item with the given id is stored within the container
[in] | id | The id of the item to retrieve |
Definition at line 100 of file NamedObjectCont.h.
|
inlineinherited |
Definition at line 125 of file NamedObjectCont.h.
|
private |
Invalidated assignment operator.
void MSJunctionControl::postloadInitContainer | ( | ) |
Closes building of junctions.
Calls "postloadInit" on all stored junctions.
ProcessError | From the called "postloadInit" |
Definition at line 42 of file MSJunctionControl.cpp.
References INTERNAL, and MSLink::recheckSetRequestInformation().
Referenced by NLBuilder::buildNet().
|
inlineinherited |
Removes an item.
[in] | id | The id of the item to remove |
[in] | del | delete item after removing of container |
Definition at line 80 of file NamedObjectCont.h.
|
inlineinherited |
Returns the number of stored items within the container.
Definition at line 118 of file NamedObjectCont.h.
|
privateinherited |
The map from key to object.
Definition at line 158 of file NamedObjectCont.h.