 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_IREFERENCE_COUNTED_H_INCLUDED__
6 #define __I_IREFERENCE_COUNTED_H_INCLUDED__
47 : DebugName(0), ReferenceCounter(1)
86 void grab()
const { ++ReferenceCounter; }
122 if (!ReferenceCounter)
135 return ReferenceCounter;
164 mutable s32 ReferenceCounter;
void grab() const
Grabs the object. Increments the reference counter by one.
s32 getReferenceCount() const
Get the reference count.
char c8
8 bit character variable.
bool drop() const
Drops the object. Decrements the reference counter by one.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
signed int s32
32 bit signed variable.
Base class of most objects of the Irrlicht Engine.
Everything in the Irrlicht Engine can be found in this namespace.
virtual ~IReferenceCounted()
Destructor.
IReferenceCounted()
Constructor.
#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
define a break macro for debugging.
const c8 * getDebugName() const
Returns the debug name of the object.