![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A container for ids of selected objects of a certain type. More...
#include <GUISelectedStorage.h>
Public Member Functions | |
| void | clear () |
| Clears the list of selected objects. | |
| void | deselect (GUIGlID id) |
| Deselects the object with the given id from the list of selected objects. | |
| const std::unordered_set< GUIGlID > & | getSelected () const |
| Returns the list of selected ids. | |
| bool | isSelected (GUIGlID id) |
| Returns the information whether the object with the given id is qithin the selection. | |
| void | save (const std::string &filename) |
| Saves the list of selected objects to a file named as given. | |
| void | select (GUIGlID id) |
| Adds the object with the given id to the list of selected objects. | |
| SingleTypeSelections () | |
| Constructor. | |
| ~SingleTypeSelections () | |
| Destructor. | |
Private Attributes | |
| std::unordered_set< GUIGlID > | mySelected |
| The list of selected ids. | |
A container for ids of selected objects of a certain type.
Definition at line 227 of file GUISelectedStorage.h.
| GUISelectedStorage::SingleTypeSelections::SingleTypeSelections | ( | ) |
Constructor.
Definition at line 42 of file GUISelectedStorage.cpp.
| GUISelectedStorage::SingleTypeSelections::~SingleTypeSelections | ( | ) |
Destructor.
Definition at line 45 of file GUISelectedStorage.cpp.
| void GUISelectedStorage::SingleTypeSelections::clear | ( | ) |
Clears the list of selected objects.
Definition at line 67 of file GUISelectedStorage.cpp.
References mySelected.
| void GUISelectedStorage::SingleTypeSelections::deselect | ( | GUIGlID | id | ) |
Deselects the object with the given id from the list of selected objects.
| [in] | id | The id of the object |
Definition at line 61 of file GUISelectedStorage.cpp.
References mySelected.
| const std::unordered_set< GUIGlID > & GUISelectedStorage::SingleTypeSelections::getSelected | ( | ) | const |
Returns the list of selected ids.
Definition at line 79 of file GUISelectedStorage.cpp.
References mySelected.
| bool GUISelectedStorage::SingleTypeSelections::isSelected | ( | GUIGlID | id | ) |
Returns the information whether the object with the given id is qithin the selection.
| [in] | id | The id of the object |
Definition at line 49 of file GUISelectedStorage.cpp.
References mySelected.
| void GUISelectedStorage::SingleTypeSelections::save | ( | const std::string & | filename | ) |
Saves the list of selected objects to a file named as given.
| [in] | filename | The name of the file to save the list into |
Definition at line 73 of file GUISelectedStorage.cpp.
References mySelected, and GUISelectedStorage::save().
| void GUISelectedStorage::SingleTypeSelections::select | ( | GUIGlID | id | ) |
Adds the object with the given id to the list of selected objects.
| [in] | id | The id of the object |
Definition at line 55 of file GUISelectedStorage.cpp.
References mySelected.
|
private |
The list of selected ids.
Definition at line 267 of file GUISelectedStorage.h.
Referenced by clear(), deselect(), getSelected(), isSelected(), save(), and select().