![]() |
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. More... | |
Public Member Functions | |
bool | add (const std::string &id, MSJunction * item) |
Adds an item. More... | |
IDMap::const_iterator | begin () const |
Returns a reference to the begin iterator for the internal map. More... | |
bool | changeID (const std::string &oldId, const std::string &newId) |
change ID of a stored object More... | |
void | clear () |
Removes all items from the container (deletes them, too) More... | |
IDMap::const_iterator | end () const |
Returns a reference to the end iterator for the internal map. More... | |
MSJunction * | get (const std::string &id) const |
Retrieves an item. More... | |
void | insertIDs (std::vector< std::string > &into) const |
MSJunctionControl () | |
Constructor. More... | |
void | postloadInitContainer () |
Closes building of junctions. More... | |
bool | remove (const std::string &id, const bool del=true) |
Removes an item. More... | |
int | size () const |
Returns the number of stored items within the container. More... | |
~MSJunctionControl () | |
Destructor. More... | |
Private Member Functions | |
MSJunctionControl (const MSJunctionControl &) | |
Invalidated copy constructor. More... | |
MSJunctionControl & | operator= (const MSJunctionControl &) |
Invalidated assignment operator. More... | |
Container for junctions; performs operations on all stored junctions.
Definition at line 45 of file MSJunctionControl.h.
|
inherited |
Definition of the key to pointer map type.
Definition at line 47 of file NamedObjectCont.h.
MSJunctionControl::MSJunctionControl | ( | ) |
Constructor.
Definition at line 34 of file MSJunctionControl.cpp.
MSJunctionControl::~MSJunctionControl | ( | ) |
Destructor.
Definition at line 38 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.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
Returns a reference to the begin iterator for the internal map.
Definition at line 145 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
change ID of a stored object
Definition at line 131 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
Removes all items from the container (deletes them, too)
Definition at line 109 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
Returns a reference to the end iterator for the internal map.
Definition at line 150 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
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 99 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
Definition at line 124 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
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 43 of file MSJunctionControl.cpp.
References NODETYPE_INTERNAL.
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 79 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.
|
inlineinherited |
Returns the number of stored items within the container.
Definition at line 117 of file NamedObjectCont.h.
References NamedObjectCont< T >::myMap.