69 ObjectMap::iterator i =
myMap.find(
id);
70 if (i ==
myMap.end()) {
99 ObjectMap::iterator i =
myMap.find(
id);
100 if (i ==
myMap.end()) {
126 ObjectMap::iterator i =
myBlocked.find(
id);
139 std::set<GUIGlID> result;
140 for (ObjectMap::const_iterator it =
myMap.begin(); it !=
myMap.end(); it++) {
141 result.insert(it->first);
ObjectMap my2Delete
Objects to delete.
bool remove(GUIGlID id)
Removes the named object from this container.
std::set< GUIGlID > getAllIDs() const
Returns the set of all known ids.
std::map< std::string, GUIGlObject * > myFullNameMap
ObjectMap myBlocked
The currently accessed objects.
void clear()
Clears this container.
GUIGlID myAktID
The next id to give; initially zero, increased by one with each object registration.
GUIGlObjectStorage()
Constructor.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
A storage for of displayed objects via their numerical id.
~GUIGlObjectStorage()
Destructor.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
void unblockObject(GUIGlID id)
Marks an object as unblocked.
GUIGlObject * getObjectBlocking(GUIGlID id)
Returns the object from the container locking it.
ObjectMap myMap
The known objects which are not accessed currently.
MFXMutex myLock
A lock to avoid parallel access on the storages.