#include <ObjectFactory.hpp>
|
template<typename T , typename... Args> |
T * | createImpl (const std::string &typeName, Args &&... args) |
|
| ObjectFactory ()=default |
|
◆ ~ObjectFactory()
ObjectFactory::~ObjectFactory |
( |
| ) |
|
|
inline |
◆ ObjectFactory()
ObjectFactory::ObjectFactory |
( |
| ) |
|
|
privatedefault |
◆ create()
template<typename T , typename... Args>
T * ObjectFactory::create |
( |
Args &&... |
args | ) |
|
|
inline |
◆ createByName()
template<typename T , typename... Args>
T * ObjectFactory::createByName |
( |
const std::string & |
typeName, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ createImpl()
template<typename T , typename... Args>
T * ObjectFactory::createImpl |
( |
const std::string & |
typeName, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineprivate |
◆ deleteObject()
void ObjectFactory::deleteObject |
( |
void * |
ptr | ) |
|
|
inline |
◆ getObjects()
template<typename T >
std::vector< T * > ObjectFactory::getObjects |
( |
| ) |
const |
|
inline |
◆ registerType()
template<typename T >
void ObjectFactory::registerType |
( |
const std::string & |
typeName | ) |
|
|
inline |
◆ Singleton< ObjectFactory >
◆ m_objects
std::unordered_map<void*, ObjectInfo> ObjectFactory::m_objects |
|
private |
◆ m_typeInfo
std::unordered_map<std::string, TypeInfo> ObjectFactory::m_typeInfo |
|
private |
该类的文档由以下文件生成: