 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
53 FXMutexLock locker(
myLock);
63 FXMutexLock locker(
myLock);
64 ObjectMap::iterator i =
myMap.find(
id);
65 if (i ==
myMap.end()) {
82 FXMutexLock locker(
myLock);
93 FXMutexLock locker(
myLock);
94 ObjectMap::iterator i =
myMap.find(
id);
95 if (i ==
myMap.end()) {
112 FXMutexLock locker(
myLock);
120 FXMutexLock locker(
myLock);
121 ObjectMap::iterator i =
myBlocked.find(
id);
133 FXMutexLock locker(
myLock);
134 std::set<GUIGlID> result;
135 for (ObjectMap::const_iterator it =
myMap.begin(); it !=
myMap.end(); it++) {
136 result.insert(it->first);
A storage for of displayed objects via their numerical id.
bool remove(GUIGlID id)
Removes the named object from this container.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
const std::string & getFullName() const
GUIGlObjectStorage()
Constructor.
ObjectMap my2Delete
Objects to delete.
FXMutex myLock
A lock to avoid parallel access on the storages.
ObjectMap myBlocked
The currently accessed objects.
GUIGlID myAktID
The next id to give; initially zero, increased by one with each object registration.
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
void unblockObject(GUIGlID id)
Marks an object as unblocked.
ObjectMap myMap
The known objects which are not accessed currently.
std::set< GUIGlID > getAllIDs() const
Returns the set of all known ids.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
std::map< std::string, GUIGlObject * > myFullNameMap
~GUIGlObjectStorage()
Destructor.
void clear()
Clears this container.