MercuryObjectRegister Class Reference

[internal] Mercury Object Register, Keeps track of all objects. More...

#include <MercuryObject.h>

Collaboration diagram for MercuryObjectRegister:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryObjectRegister ()
void Register (MercuryObject *obj, const MString &name)
void Unregister (const MString &name)
MercuryObjectGetObjectFromName (const MString &name)
void ShutDown ()

Static Public Member Functions

static void SendCompiledMessage (const MString &message, void *data, PStack &info)
static int GetCountOfObject (const MString &name)

Private Attributes

const int NOTFOUND

Static Private Attributes

static MHash< MercuryObject * > m_mObjects
static MHash< int > m_mObjectCounts

Detailed Description

[internal] Mercury Object Register, Keeps track of all objects.

While objects should never be created in static time if you do, it won't break this class.

Definition at line 224 of file MercuryObject.h.


Constructor & Destructor Documentation

MercuryObjectRegister::MercuryObjectRegister (  ) 


Member Function Documentation

void MercuryObjectRegister::Register ( MercuryObject obj,
const MString name 
)

void MercuryObjectRegister::Unregister ( const MString name  ) 

MercuryObject* MercuryObjectRegister::GetObjectFromName ( const MString name  ) 

static void MercuryObjectRegister::SendCompiledMessage ( const MString message,
void *  data,
PStack info 
) [static]

static int MercuryObjectRegister::GetCountOfObject ( const MString name  )  [static]

void MercuryObjectRegister::ShutDown (  ) 


Member Data Documentation

const int MercuryObjectRegister::NOTFOUND [private]

Definition at line 235 of file MercuryObject.h.

MHash< MercuryObject * > MercuryObjectRegister::m_mObjects [static, private]

Definition at line 236 of file MercuryObject.h.

MHash< int > MercuryObjectRegister::m_mObjectCounts [static, private]

Definition at line 237 of file MercuryObject.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo