Pointer to reference counted objects.
More...
#include <object.h>
|
void | detach (void) |
| Detach current object, for example, when changing pointer. More...
|
|
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...
|
|
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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Pointer to reference count managed objects.
◆ RefPointer() [1/3]
ost::RefPointer::RefPointer |
( |
| ) |
|
|
inline |
Create an unattached pointer.
◆ RefPointer() [2/3]
ost::RefPointer::RefPointer |
( |
RefObject * |
obj | ) |
|
Create a pointer attached to a reference counted object.
Object being referenced.
◆ RefPointer() [3/3]
ost::RefPointer::RefPointer |
( |
const RefPointer & |
ptr | ) |
|
A copy constructor.
Pointer being copied.
◆ ~RefPointer()
virtual ost::RefPointer::~RefPointer |
( |
| ) |
|
|
virtual |
◆ detach()
void ost::RefPointer::detach |
( |
void |
| ) |
|
|
protected |
Detach current object, for example, when changing pointer.
◆ enterLock()
virtual void ost::RefPointer::enterLock |
( |
void |
| ) |
|
|
protectedvirtual |
Patch point for mutex in derived class.
This may often be a single static mutex shared by a managed type.
◆ getObject()
void* ost::RefPointer::getObject |
( |
void |
| ) |
const |
◆ leaveLock()
virtual void ost::RefPointer::leaveLock |
( |
void |
| ) |
|
|
protectedvirtual |
Patch point for a mutex in derived class.
This may often be a single static mutex shared by a managed type.
◆ operator!()
bool ost::RefPointer::operator! |
( |
| ) |
const |
◆ operator*()
void* ost::RefPointer::operator* |
( |
| ) |
const |
|
inline |
◆ operator->()
void* ost::RefPointer::operator-> |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ ref
The documentation for this class was generated from the following file: