The reference counted pointer class used with SharedPtr. More...
#include <RefCounted.h>
Public Member Functions | |
RefCounted () | |
Create RefCounted object. The reference count is initialized to 0. | |
virtual | ~RefCounted () |
Destroy reference counted object. | |
void | AddRef () |
Increase reference count. | |
eC_Int | RefCount () const |
void | Release () |
bool | Unique () const |
The reference counted pointer class used with SharedPtr.
The RefCounted class is used in conjunction with SharedPtr to implement reference counting and automatic deletion for user classes. Derive any other class from this one to add the reference counting methods. Objects of this class delete themselves when the reference count reaches zero.
|
inline |
Get the current reference count.
|
inline |
Decrease reference count.
|
inline |
Check whether this instance is referenced once.