Oxygine  1
2g game engine
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
oxygine::ObjectBase Class Reference

#include <Object.h>

Inheritance diagram for oxygine::ObjectBase:
oxygine::PoolObject oxygine::file::fileHandle oxygine::Font oxygine::Object oxygine::Clock oxygine::EventDispatcher oxygine::Resource oxygine::ShaderProgram oxygine::Texture oxygine::TweenObj oxygine::Actor oxygine::AsyncTask oxygine::InputText oxygine::ThreadLoader oxygine::Tween oxygine::ResAnim oxygine::ResAtlas oxygine::ResBuffer oxygine::ResFont oxygine::Resources oxygine::ResStarlingAtlas oxygine::ShaderProgramGL oxygine::Image oxygine::NativeTexture oxygine::TweenPostProcess

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
 

Detailed Description

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

Member Function Documentation

◆ dumpCreatedObjects()

static void oxygine::ObjectBase::dumpCreatedObjects ( )
static

Dumps into Output all created and undeleted objects. Use it for memory leaks searching

◆ showAssertInCtor()

static void oxygine::ObjectBase::showAssertInCtor ( int  id)
static

Shows assert when object with this unique ID will be created.

◆ showAssertInDtor()

static void oxygine::ObjectBase::showAssertInDtor ( int  id)
static

Shows assert when object with this unique ID will be destroyed.


The documentation for this class was generated from the following file: