Class RefCountedObject

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

class RefCountedObject;

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

Fields

NameTypeDescription
_refCount intcount of references to this object from Ref

Properties

NameTypeDescription
refCount[get] intreturns current value of reference counter

Methods

NameDescription
addRef () increments reference counter
releaseRef () decrement reference counter, destroy object if no more references left

Aliases

NameDescription
~this