Public Member Functions | |
Referenced () | |
Referenced (const Referenced &c) | |
void | reference () const |
bool | unreference () const |
const int | referenceCount () const |
void | enableOnUnreferenceCall (bool enabled) |
virtual void | onUnreference () const |
virtual | ~Referenced () |
Protected Attributes | |
int | _refCount |
bool | onUnreferenceEnabled |
Definition at line 34 of file Referenced.
|
Definition at line 38 of file Referenced. References _refCount, DEBUG, Exception, and onUnreferenceEnabled. |
|
Definition at line 54 of file Referenced. References _refCount, DEBUG, and onUnreferenceEnabled. |
|
Definition at line 125 of file Referenced. |
|
If enabled, each call to unreference() will also call virtual method onUnreference() Definition at line 115 of file Referenced. References onUnreferenceEnabled. |
|
Called by unreference() if enabled via enableOnUnreferenceCall(true). Typically overridden in subclasses that wish to know about unreference() calls - for example to handle manually breaking cyclic references Reimplemented in robot::control::ControllableAdaptor::AdaptorControlInterface, and robot::control::ControllableAdaptor. Definition at line 121 of file Referenced. Referenced by unreference(). |
|
Increment the reference count by one, indicating that this object has another pointer which is referencing it. Definition at line 65 of file Referenced. References _refCount. |
|
Return the number pointers currently referencing this object. Definition at line 112 of file Referenced. References _refCount. Referenced by robot::control::ControllableAdaptor::AdaptorControlInterface::onUnreference(). |
|
Decrement the reference count by one, indicating that a pointer to this object is referencing it. If the refence count goes to zero, it is assumed that this object is nolonger referenced and is automatically deleted. Definition at line 81 of file Referenced. References _refCount, Exception, onUnreference(), and onUnreferenceEnabled. |
|
Definition at line 136 of file Referenced. Referenced by reference(), referenceCount(), Referenced(), unreference(), and ~Referenced(). |
|
Definition at line 137 of file Referenced. Referenced by enableOnUnreferenceCall(), Referenced(), and unreference(). |