![]() |
Kochol Game Engine
0.1.0
|
This class is for refrence counting and lock and unlocking object for multi thread purpose. More...
#include <KgeUnknown.h>
Public Member Functions | |
KgeUnknown () | |
Constructor. | |
virtual | ~KgeUnknown () |
Destructor. | |
virtual void | AddRef () |
Add a reference to the object. | |
virtual void | DecRef () |
Decrease a reference from the object. if its reference count get 0 then the object will destroy. | |
u32 | GetRefCount () |
Return resource reference count. | |
const char * | GetDebugText () |
returns the instance debug text. |
Protected Member Functions | |
void | SetDebugText (char *text) |
Private Attributes | |
u32 | m_iRefrenceCount |
char * | m_pDebugText |
This class is for refrence counting and lock and unlocking object for multi thread purpose.
Definition at line 25 of file KgeUnknown.h.
|
inline |
Constructor.
Definition at line 30 of file KgeUnknown.h.
|
inlinevirtual |
Destructor.
Definition at line 36 of file KgeUnknown.h.
|
inlinevirtual |
Add a reference to the object.
Definition at line 44 of file KgeUnknown.h.
Referenced by kge::gfx::CustomMaterial::GetCopy().
|
inlinevirtual |
Decrease a reference from the object. if its reference count get 0 then the object will destroy.
Definition at line 54 of file KgeUnknown.h.
References KGE_DELETETHIS.
|
inline |
returns the instance debug text.
Definition at line 72 of file KgeUnknown.h.
|
inline |
Return resource reference count.
Definition at line 69 of file KgeUnknown.h.
|
inlineprotected |
sets the instance debug text.
text | The function don't copy it but store it pointer and delete it on destructor. |
Definition at line 83 of file KgeUnknown.h.
|
private |
Definition at line 91 of file KgeUnknown.h.
|
private |
Definition at line 92 of file KgeUnknown.h.