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