ost::RefObject - A reference countable object.
Contents
Constructor & Destructor Documentation
ost::RefObject::RefObject()[inline],[protected]
The constructor simply initializes the count.
virtualost::RefObject::~RefObject()[protected],[virtual]
The destructor is called when the reference count returns to zero. This is done through a virtual
destructor.
Detailed Description
A reference countable object.
This is used in association with smart pointers (RefPointer).
Author
David Sugar dyfet@gnutelephony.org
Object managed by smart pointer reference count.
Member Data Documentation
unsignedost::RefObject::refCount[protected]
Member Function Documentation
virtualvoid*ost::RefObject::getObject(void)[purevirtual]
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.
Name
ost::RefObject - A reference countable object.
Synopsis
#include <object.h>
PublicMemberFunctions
virtual void * getObject (void)=0
The actual object being managed can be returned by this method as a void and then recast to the
actual type.
ProtectedMemberFunctionsRefObject ()
The constructor simply initializes the count.
virtual ~RefObject ()
The destructor is called when the reference count returns to zero.
ProtectedAttributes
unsigned refCountFriends
class RefPointer