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;
virtual ~IReferenceCounted()
Destructor.
char c8
8 bit character variable.
Everything in the Irrlicht Engine can be found in this namespace.
bool drop() const
Drops the object. Decrements the reference counter by one.
signed int s32
32 bit signed variable.
IReferenceCounted()
Constructor.
s32 getReferenceCount() const
Get the reference count.
#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
define a break macro for debugging.
const c8 * getDebugName() const
Returns the debug name of the object.
void setDebugName(const c8 *newName)
Sets the debug name of the object.
Base class of most objects of the Irrlicht Engine.
void grab() const
Grabs the object. Increments the reference counter by one.