#include <Referenced.h>
Public Member Functions | |
kt_int32s | GetReferenceCount () |
kt_int32s | Reference () const |
Referenced () | |
kt_int32s | Unreference () const |
kt_int32s | UnreferenceNoDelete () const |
Private Member Functions | |
const Referenced & | operator= (const Referenced &) |
Referenced (const Referenced &) | |
Private Attributes | |
ReferencedPrivate * | m_pReferencedPrivate |
Base class for reference-counted objects. Combined with SmartPointer<T>, any subclass of Referenced will automatically be garbage collected when unreferenced.
Definition at line 42 of file Referenced.h.
Default constructor
Definition at line 51 of file Referenced.cpp.
karto::Referenced::Referenced | ( | const Referenced & | ) | [private] |
const Referenced& karto::Referenced::operator= | ( | const Referenced & | ) | [private] |
kt_int32s karto::Referenced::Reference | ( | ) | const |
kt_int32s karto::Referenced::Unreference | ( | ) | const |
Decreases the reference count. Does not delete the object if the reference count goes to 0.
Definition at line 99 of file Referenced.cpp.
Definition at line 91 of file Referenced.h.