The class info registration container.
More...
#include <murl_util_class_info_registry.h>
template<class ClassInfoType>
class Murl::Util::ClassInfoRegistry< ClassInfoType >
The class info registration container.
Objects derived from IFactoryObject can be registered.
◆ Register()
template<class ClassInfoType>
Register a class info object.
- Parameters
-
classInfo | The class info object to register. |
- Returns
- true if successful or false if a object's class name is already registered.
◆ Unregister()
template<class ClassInfoType>
Unregister a class info object.
- Parameters
-
classInfo | The class info object to unregister. |
- Returns
- true if successful or false if the object's class name is not registered.
◆ GetIndex() [1/2]
template<class ClassInfoType>
Get the index of a registered class info object.
- Parameters
-
classInfo | The class info object. |
- Returns
- The zero-based index or false if the object's class name is not registered.
◆ GetIndex() [2/2]
template<class ClassInfoType>
Get the index of a registered class info object by name.
- Parameters
-
className | The class name of the object. |
- Returns
- The zero-based index or false if the class name is not registered.
◆ GetCount()
template<class ClassInfoType>
Get the number of registered class info objects.
- Returns
- The number of registered class info objects.
◆ IsEmpty()
template<class ClassInfoType>
Check if the class info registry is empty.
- Returns
- true if the class info registry is empty.
◆ Get()
template<class ClassInfoType>
Get a registered class info object by name.
- Parameters
-
className | The class name of the object. |
- Returns
- The class info object or null if the class name is not registered.
◆ GetAt()
template<class ClassInfoType>
Get a registered class info object by index.
- Parameters
-
index | The index the object. |
- Returns
- The class info object or null if the index is out of range.
◆ GetKeyAt()
template<class ClassInfoType>
Get the (alias) name of a registered class info object by index.
- Parameters
-
index | The index the object. |
- Returns
- The registered name or an empty string if the index is out of range.
◆ mClassInfos
template<class ClassInfoType>
The registered class info objects mapped by the class name.
The documentation for this class was generated from the following file:
- murl_util_class_info_registry.h