52 FXMutexLock locker(
myLock);
62 FXMutexLock locker(
myLock);
63 ObjectMap::iterator i =
myMap.find(
id);
64 if (i ==
myMap.end()) {
81 FXMutexLock locker(
myLock);
92 FXMutexLock locker(
myLock);
93 ObjectMap::iterator i =
myMap.find(
id);
94 if (i ==
myMap.end()) {
111 FXMutexLock locker(
myLock);
119 FXMutexLock locker(
myLock);
120 ObjectMap::iterator i =
myBlocked.find(
id);
132 FXMutexLock locker(
myLock);
133 std::set<GUIGlID> result;
134 for (ObjectMap::const_iterator it =
myMap.begin(); it !=
myMap.end(); it++) {
135 result.insert(it->first);
const std::string & getFullName() const
A storage for of displayed objects via their numerical id.
GUIGlObjectStorage()
Constructor.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
void clear()
Clears this container.
~GUIGlObjectStorage()
Destructor.
void unblockObject(GUIGlID id)
Marks an object as unblocked.
GUIGlID myAktID
The next id to give; initially zero, increased by one with each object registration.
ObjectMap myBlocked
The currently accessed objects.
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.
FXMutex myLock
A lock to avoid parallel access on the storages.
bool remove(GUIGlID id)
Removes the named object from this container.
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
std::map< std::string, GUIGlObject * > myFullNameMap
ObjectMap my2Delete
Objects to delete.