Oxygine
1
2g game engine
|
#include <Object.h>
Public Types | |
typedef std::vector< ObjectBase * > | __createdObjects |
Public Member Functions | |
ObjectBase (const ObjectBase &src) | |
ObjectBase (bool assignID=true) | |
const std::string & | getName () const |
const void * | getUserData () const |
int | getObjectID () const |
bool | isName (const std::string &name) const |
bool | isName (const char *name) const |
void | setName (const std::string &name) |
void | setUserData (const void *data) |
void | dumpObject () const |
void | __removeFromDebugList () |
Static Public Member Functions | |
static void | dumpCreatedObjects () |
static void | showAssertInCtor (int id) |
static void | showAssertInDtor (int id) |
static __createdObjects & | __getCreatedObjects () |
static void | __startTracingLeaks () |
static void | __stopTracingLeaks () |
Protected Member Functions | |
void | __generateID () |
std::string * | __getName () const |
void | __freeName () const |
Static Protected Member Functions | |
static void | __addToDebugList (ObjectBase *base) |
static void | __removeFromDebugList (ObjectBase *base) |
Protected Attributes | |
std::string | __name |
int | __id |
const void * | __userData |
Static Protected Attributes | |
static int | _lastID |
static int | _assertCtorID |
static int | _assertDtorID |
Base class for each oxygine object. Each object has unique internal ID and name. Debug build is tracking all created and deleted objects. Using memory pools
|
static |
Dumps into Output all created and undeleted objects. Use it for memory leaks searching
|
static |
Shows assert when object with this unique ID will be created.
|
static |
Shows assert when object with this unique ID will be destroyed.