ucommon
Public Member Functions | Protected Member Functions | Protected Attributes
ost::RefPointer Class Reference

Pointer to reference counted objects. More...

#include <object.h>

Collaboration diagram for ost::RefPointer:
Collaboration graph
[legend]

Public Member Functions

void * getObject (void) const
bool operator! () const
void * operator* () const
void * operator-> () const
RefPointeroperator= (const RefObject &ref)
 RefPointer ()
 Create an unattached pointer.
 RefPointer (RefObject *obj)
 Create a pointer attached to a reference counted object.
 RefPointer (const RefPointer &ptr)
 A copy constructor.

Protected Member Functions

void detach (void)
 Detach current object, for example, when changing pointer.
virtual void enterLock (void)
 Patch point for mutex in derived class.
virtual void leaveLock (void)
 Patch point for a mutex in derived class.

Protected Attributes

RefObjectref

Detailed Description

Pointer to reference counted objects.

This is a non-template form of a reference count smart pointer, and so uses common code. This can be subclassed to return explicit object types.

Author:
David Sugar <dyfet@gnutelephony.org> Pointer to reference count managed objects.

Definition at line 102 of file object.h.


Constructor & Destructor Documentation

Create a pointer attached to a reference counted object.

Object being referenced.

A copy constructor.

Pointer being copied.


Member Function Documentation

virtual void ost::RefPointer::enterLock ( void  ) [protected, virtual]

Patch point for mutex in derived class.

This may often be a single static mutex shared by a managed type.

virtual void ost::RefPointer::leaveLock ( void  ) [protected, virtual]

Patch point for a mutex in derived class.

This may often be a single static mutex shared by a managed type.


The documentation for this class was generated from the following file: