|
SUMO - Simulation of Urban MObility
|
Container for junctions; performs operations on all stored junctions. More...
#include <MSJunctionControl.h>
Public Member Functions | |
| virtual bool | add (const std::string &id, MSJunction *item) throw () |
| Adds an item. | |
| const std::vector< MSJunction * > & | buildAndGetStaticVector () const throw () |
| void | clear () throw () |
| Removes all items from the container (deletes them, too) | |
| bool | erase (const std::string &id) throw () |
| Removes the named item from the container. | |
| MSJunction * | get (const std::string &id) const throw () |
| Retrieves an item. | |
| const std::map< std::string, MSJunction * > & | getMyMap () const throw () |
| std::vector< MSJunction * > | getTempVector () const throw () |
| void | insertIDs (std::vector< std::string > &into) const throw () |
| MSJunctionControl () throw () | |
| Constructor. | |
| void | postloadInitContainer () throw (ProcessError) |
| Closes building of junctions. | |
| virtual bool | remove (const std::string &id) throw () |
| Removes an item. | |
| unsigned int | size () const throw () |
| Returns the number of items within the container. | |
| ~MSJunctionControl () throw () | |
| Destructor. | |
Private Member Functions | |
| MSJunctionControl (const MSJunctionControl &) | |
| Invalidated copy constructor. | |
| MSJunctionControl & | operator= (const MSJunctionControl &) |
| Invalidated assignment operator. | |
Container for junctions; performs operations on all stored junctions.
Definition at line 53 of file MSJunctionControl.h.
| MSJunctionControl::MSJunctionControl | ( | ) | throw () |
Constructor.
Definition at line 42 of file MSJunctionControl.cpp.
| MSJunctionControl::~MSJunctionControl | ( | ) | throw () |
Destructor.
Definition at line 46 of file MSJunctionControl.cpp.
| MSJunctionControl::MSJunctionControl | ( | const MSJunctionControl & | ) | [private] |
Invalidated copy constructor.
| virtual bool NamedObjectCont< MSJunction * >::add | ( | const std::string & | id, |
| MSJunction * | item | ||
| ) | throw () [inline, virtual, inherited] |
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 74 of file NamedObjectCont.h.
| const std::vector<MSJunction * >& NamedObjectCont< MSJunction * >::buildAndGetStaticVector | ( | ) | const throw () [inline, inherited] |
Definition at line 173 of file NamedObjectCont.h.
Referenced by postloadInitContainer().
| void NamedObjectCont< MSJunction * >::clear | ( | ) | throw () [inline, inherited] |
Removes all items from the container (deletes them, too)
Definition at line 117 of file NamedObjectCont.h.
| bool NamedObjectCont< MSJunction * >::erase | ( | const std::string & | id | ) | throw () [inline, inherited] |
Removes the named item from the container.
If the named object exists, it is deleted, the key is removed from the map, and true is returned. If the id was not known, false is returned.
| [in] | id | The id of the item to delete |
Definition at line 145 of file NamedObjectCont.h.
| MSJunction * NamedObjectCont< MSJunction * >::get | ( | const std::string & | id | ) | const throw () [inline, inherited] |
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 107 of file NamedObjectCont.h.
| const std::map<std::string, MSJunction * >& NamedObjectCont< MSJunction * >::getMyMap | ( | ) | const throw () [inline, inherited] |
Definition at line 218 of file NamedObjectCont.h.
| std::vector<MSJunction * > NamedObjectCont< MSJunction * >::getTempVector | ( | ) | const throw () [inline, inherited] |
Definition at line 193 of file NamedObjectCont.h.
| void NamedObjectCont< MSJunction * >::insertIDs | ( | std::vector< std::string > & | into | ) | const throw () [inline, inherited] |
Definition at line 206 of file NamedObjectCont.h.
| MSJunctionControl& MSJunctionControl::operator= | ( | const MSJunctionControl & | ) | [private] |
Invalidated assignment operator.
| void MSJunctionControl::postloadInitContainer | ( | ) | throw (ProcessError) |
Closes building of junctions.
Calls "postloadInit" on all stored junctions.
| ProcessError | From the called "postloadInit" |
Definition at line 51 of file MSJunctionControl.cpp.
References NamedObjectCont< MSJunction * >::buildAndGetStaticVector().
Referenced by MSNet::closeBuilding().
| virtual bool NamedObjectCont< MSJunction * >::remove | ( | const std::string & | id | ) | throw () [inline, virtual, inherited] |
Removes an item.
| [in] | id | The id of the item to remove |
Definition at line 88 of file NamedObjectCont.h.
| unsigned int NamedObjectCont< MSJunction * >::size | ( | ) | const throw () [inline, inherited] |
Returns the number of items within the container.
Definition at line 131 of file NamedObjectCont.h.