SUMO - Simulation of Urban MObility
GUISelectedStorage::SingleTypeSelections Class Reference

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::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::set< GUIGlIDmySelected
 The list of selected ids.

Detailed Description

A container for ids of selected objects of a certain type.

Definition at line 242 of file GUISelectedStorage.h.


Constructor & Destructor Documentation


Member Function Documentation

Clears the list of selected objects.

Definition at line 77 of file GUISelectedStorage.cpp.

Deselects the object with the given id from the list of selected objects.

Parameters:
[in]idThe id of the object

Definition at line 71 of file GUISelectedStorage.cpp.

Returns the list of selected ids.

Returns:
A list containing the ids of all selected objects

Definition at line 89 of file GUISelectedStorage.cpp.

Returns the information whether the object with the given id is qithin the selection.

Parameters:
[in]idThe id of the object
Returns:
Whether the object is selected

Definition at line 59 of file GUISelectedStorage.cpp.

void GUISelectedStorage::SingleTypeSelections::save ( const std::string &  filename)

Saves the list of selected objects to a file named as given.

Parameters:
[in]filenameThe name of the file to save the list into

Definition at line 83 of file GUISelectedStorage.cpp.

References GUISelectedStorage::save().

Adds the object with the given id to the list of selected objects.

Parameters:
[in]idThe id of the object

Definition at line 65 of file GUISelectedStorage.cpp.


Field Documentation

The list of selected ids.

Definition at line 287 of file GUISelectedStorage.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines