TDME2 1.9.121
|
Reference counter implementation to be used with inheritance. More...
#include <tdme/utilities/Reference.h>
Public Member Functions | |
Reference () | |
Public constructor. More... | |
virtual | ~Reference () |
destructor More... | |
void | acquireReference () |
acquires a reference, incrementing the counter More... | |
void | releaseReference () |
releases a reference, thus decrementing the counter and delete it if reference counter is zero More... | |
virtual void | onDelete () |
Callback method to be overridden, will be called if object will be deleted. More... | |
Private Attributes | |
unsigned int | referenceCounter |
Reference counter implementation to be used with inheritance.
Definition at line 10 of file Reference.h.
Reference | ( | ) |
Public constructor.
Definition at line 10 of file Reference.cpp.
|
virtual |
destructor
Definition at line 13 of file Reference.cpp.
void acquireReference | ( | ) |
acquires a reference, incrementing the counter
Definition at line 16 of file Reference.cpp.
|
virtual |
Callback method to be overridden, will be called if object will be deleted.
Reimplemented in Texture.
Definition at line 27 of file Reference.cpp.
void releaseReference | ( | ) |
releases a reference, thus decrementing the counter and delete it if reference counter is zero
Definition at line 20 of file Reference.cpp.
|
private |
Definition at line 38 of file Reference.h.