|
UCommon
|
Pointer to reference counted objects. More...
#include <object.h>

Public Member Functions | |
| void * | getObject (void) const |
| operator bool () const | |
| bool | operator! () const |
| void * | operator* () const |
| RefPointer & | operator= (const RefObject &ref) |
| RefPointer () | |
| Create an unattached pointer. | |
| RefPointer (RefObject *obj) | |
| Create a pointer attached to a reference counted object. More... | |
| RefPointer (const RefPointer &ptr) | |
| A copy constructor. More... | |
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. More... | |
| virtual void | leaveLock (void) |
| Patch point for a mutex in derived class. More... | |
Protected Attributes | |
| RefObject * | ref |
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.
| 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.
|
protectedvirtual |
Patch point for mutex in derived class.
This may often be a single static mutex shared by a managed type.
|
protectedvirtual |
Patch point for a mutex in derived class.
This may often be a single static mutex shared by a managed type.
1.8.14