37 uint32 id =
object->getID();
39 _objects.insert(std::make_pair(
id,
object));
51 std::map<uint32, Object *>::iterator it =
_objects.find(
id);
Object * findObject(uint32 id)
#define DECLARE_SINGLETON(T)
Note that you need to use this macro from the global namespace.
void unregisterObject(Object *object)
Convenience class that locks a mutex on creation and unlocks it on destruction.
std::map< uint32, Object * > _objects
void registerObject(Object *object)