CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csObjectRegistry Class Reference

This is an implementation of iObjectRegistry. More...

#include <objreg.h>

Inheritance diagram for csObjectRegistry:

iObjectRegistry iBase List of all members.

Public Methods

virtual ~csObjectRegistry ()
 Client must explicitly call Clear(). More...

virtual void Clear ()
 Clear the object registry and release all references. More...

virtual bool Register (iBase *obj, char const *tag=NULL)
 Register an object with this registry. More...

virtual void Unregister (iBase *obj, char const *tag=NULL)
 Unregister an object with this registry. More...

virtual iBaseGet (char const *tag)
 Get the registered object corresponding with the given tag. More...

virtual iBaseGet (char const *tag, scfInterfaceID id, int version)
 Get the registered object corresponding with the given tag and implementing the specified interface. More...

virtual csPtr< iObjectRegistryIteratorGet (scfInterfaceID id, int version)
 Get an iterator with all objects implementing the given interface. More...

virtual csPtr< iObjectRegistryIteratorGet ()
 Get an iterator with all objects in this object registry. More...


Detailed Description

This is an implementation of iObjectRegistry.

Thread-safe!

Definition at line 33 of file csutil/objreg.h.


Constructor & Destructor Documentation

virtual csObjectRegistry::~csObjectRegistry   [virtual]
 

Client must explicitly call Clear().


Member Function Documentation

virtual void csObjectRegistry::Clear   [virtual]
 

Clear the object registry and release all references.

Implements iObjectRegistry.

virtual csPtr<iObjectRegistryIterator> csObjectRegistry::Get   [virtual]
 

Get an iterator with all objects in this object registry.

Implements iObjectRegistry.

virtual csPtr<iObjectRegistryIterator> csObjectRegistry::Get scfInterfaceID    id,
int    version
[virtual]
 

Get an iterator with all objects implementing the given interface.

Implements iObjectRegistry.

virtual iBase* csObjectRegistry::Get char const *    tag,
scfInterfaceID    id,
int    version
[virtual]
 

Get the registered object corresponding with the given tag and implementing the specified interface.

Implements iObjectRegistry.

virtual iBase* csObjectRegistry::Get char const *    tag [virtual]
 

Get the registered object corresponding with the given tag.

This function will increase the ref count of the returned object.

Implements iObjectRegistry.

virtual bool csObjectRegistry::Register iBase   obj,
char const *    tag = NULL
[virtual]
 

Register an object with this registry.

Implements iObjectRegistry.

virtual void csObjectRegistry::Unregister iBase   obj,
char const *    tag = NULL
[virtual]
 

Unregister an object with this registry.

Implements iObjectRegistry.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14