![]() |
Public API Reference |
![]() |
This class is used to hold a reference count seperate to the normal one. More...
#include <csutil/refcount.h>
Public Member Functions | |
int | GetInternalRefCount () const |
Get the reference count (only for debugging). | |
void | InternalDecRef () |
Decrease the number of internal references to this object. | |
void | InternalIncRef () |
Increase the number of internal references to this object. | |
InternalRefCount () | |
Initialize object and set internal references to 0. |
This class is used to hold a reference count seperate to the normal one.
It allows the tracking of 'internal' references (such as those held by a collection), and the execution of some action when the ref count decrements to 0.
Definition at line 155 of file refcount.h.
CS::Utility::InternalRefCount::InternalRefCount | ( | ) | [inline] |
Initialize object and set internal references to 0.
Definition at line 170 of file refcount.h.
int CS::Utility::InternalRefCount::GetInternalRefCount | ( | ) | const [inline] |
Get the reference count (only for debugging).
Definition at line 194 of file refcount.h.
void CS::Utility::InternalRefCount::InternalDecRef | ( | ) | [inline] |
Decrease the number of internal references to this object.
Definition at line 183 of file refcount.h.
void CS::Utility::InternalRefCount::InternalIncRef | ( | ) | [inline] |
Increase the number of internal references to this object.
Definition at line 176 of file refcount.h.