#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 |
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.
| ost::RefPointer::RefPointer | ( | ) | [inline] |
Create an unattached pointer.
| ost::RefPointer::RefPointer | ( | RefObject * | obj | ) |
Create a pointer attached to a reference counted object.
Object being referenced.
| ost::RefPointer::RefPointer | ( | const RefPointer & | ptr | ) |
A copy constructor.
Pointer being copied.
| virtual ost::RefPointer::~RefPointer | ( | ) | [virtual] |
| void ost::RefPointer::detach | ( | void | ) | [protected] |
Detach current object, for example, when changing pointer.
| 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.
| RefPointer& ost::RefPointer::operator= | ( | const RefObject & | ref | ) |
| void* ost::RefPointer::operator * | ( | ) | const [inline] |
| void* ost::RefPointer::operator-> | ( | ) | const [inline] |
| void* ost::RefPointer::getObject | ( | void | ) | const |
| bool ost::RefPointer::operator! | ( | ) | const |
RefObject* ost::RefPointer::ref [protected] |
1.5.4