![]() |
Public API Reference |
This is a class which provides basic reference-counting semantics. More...
#include <csutil/refcount.h>
Public Member Functions | |
| void | DecRef () |
| Decrease the number of references to this object. | |
| int | GetRefCount () const |
| Get the reference count (only for debugging). | |
| void | IncRef () |
| Increase the number of references to this object. | |
| csRefCount () | |
| Initialize object and set reference to 1. | |
| csRefCount (const csRefCount &other) | |
| Initialize object and set reference to 1. | |
This is a class which provides basic reference-counting semantics.
It can be used in conjunction with the smart pointer template class csRef (see <ref.h>). This class itself provides no functionality beyond reference counting. It is intended that you should subclass csRefCount and add needed functionality.
Definition at line 38 of file refcount.h.
| csRefCount::csRefCount | ( | ) | [inline] |
Initialize object and set reference to 1.
Definition at line 60 of file refcount.h.
| csRefCount::csRefCount | ( | const csRefCount & | other | ) | [inline] |
Initialize object and set reference to 1.
Definition at line 64 of file refcount.h.
| void csRefCount::DecRef | ( | ) | [inline] |
Decrease the number of references to this object.
Definition at line 77 of file refcount.h.
| int csRefCount::GetRefCount | ( | ) | const [inline] |
Get the reference count (only for debugging).
Definition at line 85 of file refcount.h.
| void csRefCount::IncRef | ( | ) | [inline] |
Increase the number of references to this object.
Definition at line 71 of file refcount.h.