![]() |
Public API Reference |
#include <refcount.h>
Inheritance diagram for csRefCount:

Public Methods | |
| csRefCount () | |
| Initialize object and set reference to 1. More... | |
| void | IncRef () |
| Increase the number of references to this object. More... | |
| void | DecRef () |
| Decrease the number of references to this object. More... | |
| int | GetRefCount () const |
| Get the reference count (only for debugging). More... | |
It can be used in conjunction with the smart pointer template class csRef (see <csutil/ref.h>). This class itself provides no functionality beyond reference counting. It is intended that you should subclass csRef and add needed functionality.
Definition at line 30 of file refcount.h.
|
|
Initialize object and set reference to 1.
Definition at line 48 of file refcount.h. |
|
|
Decrease the number of references to this object.
Definition at line 53 of file refcount.h. |
|
|
Get the reference count (only for debugging).
Definition at line 60 of file refcount.h. |
|
|
Increase the number of references to this object.
Definition at line 51 of file refcount.h. |