RefCountedObject

Base class for reference counted objects, maintains reference counter inplace.

If some class is not inherited from RefCountedObject, additional object will be required to hold counters.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addRef
void addRef()

increments reference counter

releaseRef
void releaseRef()

decrement reference counter, destroy object if no more references left

Properties

refCount
int refCount [@property getter]

returns current value of reference counter

Variables

_refCount
int _refCount;

count of references to this object from Ref

Meta