SYNOPSIS

#include <object.h>

Public Member Functions

RefPointer ()

Create an unattached pointer. RefPointer (RefObject *obj)

Create a pointer attached to a reference counted object. RefPointer (const RefPointer &ptr)

A copy constructor. virtual ~RefPointer ()

RefPointer & operator= (const RefObject &ref)

void * operator* () const

void * operator-> () const

void * getObject (void) const

bool operator! () const

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

RefObject * ref

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 [email protected] Pointer to reference count managed objects.

Constructor & Destructor Documentation

ost::RefPointer::RefPointer ()\fC [inline]\fP

Create an unattached pointer.

ost::RefPointer::RefPointer (\fBRefObject\fP *obj)

Create a pointer attached to a reference counted object. Object being referenced.

ost::RefPointer::RefPointer (const \fBRefPointer\fP &ptr)

A copy constructor. Pointer being copied.

virtual ost::RefPointer::~RefPointer ()\fC [virtual]\fP

Member Function Documentation

void ost::RefPointer::detach (void)\fC [protected]\fP

Detach current object, for example, when changing pointer.

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

Patch point for mutex in derived class. This may often be a single static mutex shared by a managed type.

void* ost::RefPointer::getObject (void) const

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

Patch point for a mutex in derived class. This may often be a single static mutex shared by a managed type.

bool ost::RefPointer::operator! () const

void* ost::RefPointer::operator* () const\fC [inline]\fP

void* ost::RefPointer::operator-> () const\fC [inline]\fP

\fBRefPointer\fP& ost::RefPointer::operator= (const \fBRefObject\fP &ref)

Member Data Documentation

\fBRefObject\fP* ost::RefPointer::ref\fC [protected]\fP

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.