iObjectRegistry Struct Reference
[Shared Class Facility (SCF), Shared Class Facility (SCF)]
This interface serves as a registry of other objects.
More...
#include <iutil/objreg.h>
Inheritance diagram for iObjectRegistry:

Public Member Functions | |
virtual void | Clear ()=0 |
Clear the object registry and release all references. | |
virtual csPtr< iObjectRegistryIterator > | Get ()=0 |
Get an iterator with all objects in this object registry. | |
virtual csPtr< iObjectRegistryIterator > | Get (scfInterfaceID id, int version)=0 |
Get an iterator with all objects implementing the given interface. | |
virtual iBase * | Get (char const *tag, scfInterfaceID id, int version)=0 |
Get the registered object corresponding with the given tag and implementing the specified interface. | |
virtual iBase * | Get (char const *tag)=0 |
Get the registered object corresponding with the given tag. | |
virtual bool | Register (iBase *obj, char const *tag=0)=0 |
Register an object with this registry. | |
virtual void | Unregister (iBase *obj, char const *tag=0)=0 |
Unregister an object with this registry. |
Detailed Description
This interface serves as a registry of other objects.The object registry is thread-safe.
Main creators of instances implementing this interface:
Main ways to get pointers to this interface:- Stored by application.
- Everything.
Definition at line 52 of file objreg.h.
Member Function Documentation
|
Clear the object registry and release all references.
Implemented in csObjectRegistry. |
|
Get an iterator with all objects in this object registry. Note that the iterator iterates over a copy of the elements in the object registry so no thread-locking on the object registry happens except at the time the iterator is created. Implemented in csObjectRegistry. |
|
Get an iterator with all objects implementing the given interface. Note that the iterator iterates over a copy of the elements in the object registry so no thread-locking on the object registry happens except at the time the iterator is created. Implemented in csObjectRegistry. |
|
Get the registered object corresponding with the given tag and implementing the specified interface.
Implemented in csObjectRegistry. |
|
Get the registered object corresponding with the given tag.
Implemented in csObjectRegistry. Referenced by csQueryRegistry(), csQueryRegistryTag(), and csQueryRegistryTagInterface(). |
|
Register an object with this registry. The same object can be registered multiple times but in that case it is probably best to have different tags so they can be distinguished.
Implemented in csObjectRegistry. |
|
Unregister an object with this registry.
Implemented in csObjectRegistry. |
The documentation for this struct was generated from the following file:
- iutil/objreg.h
Generated for Crystal Space by doxygen 1.4.4