A storage for of displayed objects via their numerical id.
GUIGlObjectStorage(const GUIGlObjectStorage &s)
invalidated copy constructor
GUIGlObjectStorage()
Constructor.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
void clear()
Clears this container.
~GUIGlObjectStorage()
Destructor.
GUIGlObjectStorage & operator=(const GUIGlObjectStorage &s)
invalidate assignment operator
void setNetObject(GUIGlObject *object)
Sets the given object as the "network" object.
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.
GUIGlObject * getNetObject() const
Returns the network object.
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.
std::map< GUIGlID, GUIGlObject * > ObjectMap
Definition of a container from numerical ids to objects.
GUIGlObject * myNetObject
The network object.