A reference countable object.
More...
#include <object.h>
Collaboration diagram for RefObject:
Public Member Functions
The actual object being managed can be returned by this method as a void and then recast to the actual type.
More...
Protected Member Functions
The constructor simply initializes the count.
More...
The destructor is called when the reference count returns to zero.
More...
Protected Attributes
Friends
Detailed Description
Constructor & Destructor Documentation
RefObject::RefObject
(
)
inlineprotected
The constructor simply initializes the count.
Definition at line 76 of file object.h.
virtual RefObject::~RefObject
(
)
protectedvirtual
The destructor is called when the reference count returns to zero.
This is done through a virtual destructor.
Member Function Documentation
virtual void* RefObject::getObject
(
void
)
pure virtual
The actual object being managed can be returned by this method as a void and then recast to the actual type.
This removes the need to dynamic cast from RefObject and the dependence on rtti this implies.
- Returns
- underlying object being referenced.
Friends And Related Function Documentation
Field Documentation
unsigned RefObject::refCount
protected
The documentation for this class was generated from the following file: