22 #ifndef GUIGlObjectStorage_h 23 #define GUIGlObjectStorage_h GUIGlObjectStorage & operator=(const GUIGlObjectStorage &s)
invalidate assignment operator
ObjectMap my2Delete
Objects to delete.
std::set< GUIGlID > getAllIDs() const
Returns the set of all known ids.
GUIGlObject * getNetObject() const
Returns the network object.
std::map< std::string, GUIGlObject * > myFullNameMap
ObjectMap myBlocked
The currently accessed objects.
void clear()
Clears this container.
void setNetObject(GUIGlObject *object)
Sets the given object as the "network" object.
GUIGlID myAktID
The next id to give; initially zero, increased by one with each object registration.
GUIGlObject * myNetObject
The network object.
GUIGlObjectStorage()
Constructor.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
A storage for of displayed objects via their numerical id.
~GUIGlObjectStorage()
Destructor.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
std::map< GUIGlID, GUIGlObject * > ObjectMap
Definition of a container from numerical ids to objects.
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.