#include <IotrRefCount.h>
Inheritance diagram for IotrRefCount:
Public Methods | |
int | refs () |
IotrRefCount () | |
Static Public Methods | |
void | release (IotrRefCount **obj) |
void | addRef (IotrRefCount *const *obj) |
Static Public Attributes | |
int | instances |
Protected Methods | |
virtual | ~IotrRefCount () |
|
Default constructor. Creates an instance with one reference |
|
Protected virtual destructor. One should not call delete on reference-counted objects. |
|
The number of references to this object. |
|
The number of instances of IotrRefCount. This is useful for debugging purposes. If not zero when the program exits, you have a memory leak. Reimplemented in SparseStorage. |