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