|
CoriEngine
|
#include <AutoRegisteringFactory.hpp>
Public Types | |
| using | SharedCreator = std::function<std::shared_ptr<BaseType>(CtorArgs...)> |
| using | UniqueCreator = std::function<std::unique_ptr<BaseType>(CtorArgs...)> |
Public Member Functions | |
| Factory (const Factory &)=delete | |
| Factory & | operator= (const Factory &)=delete |
| Factory (Factory &&)=delete | |
| Factory & | operator= (Factory &&)=delete |
| bool | RegisterShared (const KeyType &key, SharedCreator creator) |
| bool | RegisterUnique (const KeyType &key, UniqueCreator creator) |
Static Public Member Functions | |
| static Factory & | Instance () |
| static std::shared_ptr< BaseType > | CreateShared (const KeyType &key, CtorArgs... ctorArgs) |
| static std::unique_ptr< BaseType > | CreateUnique (const KeyType &key, CtorArgs... ctorArgs) |
Definition at line 6 of file AutoRegisteringFactory.hpp.
| using Cori::Core::Factory< BaseType, KeyType, CtorArgs >::SharedCreator = std::function<std::shared_ptr<BaseType>(CtorArgs...)> |
Definition at line 8 of file AutoRegisteringFactory.hpp.
| using Cori::Core::Factory< BaseType, KeyType, CtorArgs >::UniqueCreator = std::function<std::unique_ptr<BaseType>(CtorArgs...)> |
Definition at line 9 of file AutoRegisteringFactory.hpp.
|
delete |

|
delete |

|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
delete |

|
delete |

|
inline |
Definition at line 21 of file AutoRegisteringFactory.hpp.
|
inline |
Definition at line 31 of file AutoRegisteringFactory.hpp.