22 const RTTI *
Find(
const char *inName);
48 ClassNameMap mClassNameMap;
51 ClassHashMap mClassHashMap;
uint32_t uint32
Definition Core.h:312
unsigned int uint
Definition Core.h:309
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:29
std::vector< T, STLAllocator< T > > Array
Definition STLAllocator.h:81
std::unordered_map< Key, T, Hash, KeyEqual, STLAllocator< pair< const Key, T > > > UnorderedMap
Definition UnorderedMap.h:13
Factory, to create RTTI objects.
Definition Factory.h:14
bool Register(const RTTI *inRTTI)
Register an object with the factory. Returns false on failure.
Definition Factory.cpp:31
const RTTI * Find(const char *inName)
Find type info for a specific class by name.
Definition Factory.cpp:19
void Clear()
Unregisters all types.
Definition Factory.cpp:72
JPH_OVERRIDE_NEW_DELETE void * CreateObject(const char *inName)
Create an object.
Definition Factory.cpp:13
Array< const RTTI * > GetAllClasses() const
Get all registered classes.
Definition Factory.cpp:78
static Factory * sInstance
Singleton factory instance.
Definition Factory.h:40