scfImplementation< Class > Class Template Reference
[Shared Class Facility (SCF)]
Baseclass for the SCF implementation templates.
More...
#include <csutil/scf_implementation.h>
Inheritance diagram for scfImplementation< Class >:

Public Member Functions | |
virtual void | AddRefOwner (iBase **ref_owner) |
For weak references: add a reference owner. | |
virtual void | DecRef () |
Decrement the reference count. | |
virtual int | GetRefCount () |
Get the ref count (only for debugging). | |
virtual void | IncRef () |
Increment the number of references to this object. | |
scfImplementation & | operator= (const scfImplementation &) |
Assign to another instance. | |
virtual void | RemoveRefOwner (iBase **ref_owner) |
For weak references: remove a reference owner. | |
scfImplementation (const scfImplementation &) | |
Copy constructor. | |
scfImplementation (Class *object, iBase *parent=0) | |
Constructor. | |
virtual | ~scfImplementation () |
Protected Member Functions | |
void * | QueryInterface (scfInterfaceID iInterfaceID, scfInterfaceVersion iVersion) |
Query a particular interface implemented by this object. | |
void | scfRemoveRefOwners () |
Protected Attributes | |
Class * | scfObject |
iBase * | scfParent |
int | scfRefCount |
csArray< iBase ** > * | scfWeakRefOwners |
Detailed Description
template<class Class>
class scfImplementation< Class >
Baseclass for the SCF implementation templates.
Provides common methods such as reference counting and handling of weak references.
Definition at line 125 of file scf_implementation.h.
Constructor & Destructor Documentation
|
Constructor. Initialize the SCF-implementation in class named Class. Will be called from scfImplementation(Ext)N constructor Definition at line 132 of file scf_implementation.h. |
|
Copy constructor. Use of the default copy constructor is nor desired since the information is insufficient to fully initialize scfImplementation; hence, an explicit copy constructor must be created in the derived class that initializes scfImplementation like in the normal constructor, i.e. "scfImplementation (this)". Definition at line 148 of file scf_implementation.h. |
Member Function Documentation
|
For weak references: add a reference owner.
Implements iBase. Definition at line 200 of file scf_implementation.h. |
|
Decrement the reference count.
Implements iBase. Reimplemented in csPoolEvent. Definition at line 173 of file scf_implementation.h. |
|
Get the ref count (only for debugging).
Implements iBase. Definition at line 195 of file scf_implementation.h. |
|
Increment the number of references to this object.
Implements iBase. Definition at line 187 of file scf_implementation.h. |
|
Assign to another instance. When assigning an SCF object to another, anything contained in this class should not be copied, since it's all instance- specific. Hence the assignment operator does nothing. Definition at line 168 of file scf_implementation.h. |
|
|
For weak references: remove a reference owner.
Implements iBase. Definition at line 207 of file scf_implementation.h. |
The documentation for this class was generated from the following file:
- csutil/scf_implementation.h
Generated for Crystal Space by doxygen 1.4.6