A counted class keeps track of how many abstract instances are pointing to it. More...
#include <Counted.h>
Public Member Functions | |
void | attach () |
Increases the number of references to this object. More... | |
Counted () | |
Constructor. More... | |
void | detach () |
Decreases the number of references to this object. Destroy it if there are no more references to it. More... | |
int | refCount () |
Returns the number of references to this object. More... | |
Protected Member Functions | |
virtual | ~Counted () |
Destructor. More... | |
Private Attributes | |
int | m_refCount |
The number of references to this object. More... | |
A counted class keeps track of how many abstract instances are pointing to it.
|
inlineprotectedvirtual |
|
inline |
Increases the number of references to this object.
Definition at line 88 of file Counted.h.
References m_refCount.
Referenced by te::common::intrusive_ptr_add_ref().
|
inline |
Decreases the number of references to this object. Destroy it if there are no more references to it.
Definition at line 93 of file Counted.h.
References m_refCount.
Referenced by te::common::intrusive_ptr_release().
|
inline |
Returns the number of references to this object.
Definition at line 99 of file Counted.h.
References m_refCount.
|
private |
The number of references to this object.
Definition at line 66 of file Counted.h.
Referenced by attach(), detach(), and refCount().