Reference counting support.
Implemented for case when T is RefCountedObject. Similar to shared_ptr in C++. Allows to share object, destroying it when no more references left.
Useful for automatic destroy of objects.
init from T
decreases counter, and destroys object if no more references left
after blit
clears reference
assign from another refcount by reference
assign from another refcount by value
assign object
returns object reference (null if not assigned)
returns const reference from const object
returns true if object is not assigned
returns counter of references
See Implementation
Reference counting support.
Implemented for case when T is RefCountedObject. Similar to shared_ptr in C++. Allows to share object, destroying it when no more references left.
Useful for automatic destroy of objects.