SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
ai::IFactoryRegistry< KEY, TYPE, CTX > Class Template Reference
Inheritance diagram for ai::IFactoryRegistry< KEY, TYPE, CTX >:
[legend]
Collaboration diagram for ai::IFactoryRegistry< KEY, TYPE, CTX >:
[legend]

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
 

The documentation for this class was generated from the following file: