Public Member Functions | |
bool | registerFactory (const KEY &type, const IFactory< TYPE, CTX > &factory) |
bool | unregisterFactory (const KEY &type) |
std::shared_ptr< TYPE > | create (const KEY &type, const CTX *ctx=nullptr) const |
Protected Types | |
typedef std::map< const KEY, const IFactory< TYPE, CTX > * > | FactoryMap |
typedef FactoryMap::const_iterator | FactoryMapConstIter |
typedef FactoryMap::iterator | FactoryMapIter |
Protected Attributes | |
FactoryMap | _factories |