#include <engine.hpp>
Public Types | |
typedef std::shared_ptr< engine_factory > | factory_ptr |
typedef std::map< std::string, factory_ptr > | factory_map |
typedef std::pair< const std::string, factory_ptr > | factory_map_pair |
Public Member Functions | |
virtual engine_ptr | get_new_instance (readonly_context &ai, const config &cfg)=0 |
virtual engine_ptr | get_new_instance (readonly_context &ai, const std::string &name)=0 |
engine_factory (const std::string &name) | |
virtual | ~engine_factory () |
Static Public Member Functions | |
static factory_map & | get_list () |
Private Member Functions | |
bool | is_duplicate (const std::string &name) |
Definition at line 103 of file engine.hpp.
typedef std::map<std::string, factory_ptr> ai::engine_factory::factory_map |
Definition at line 107 of file engine.hpp.
typedef std::pair<const std::string, factory_ptr> ai::engine_factory::factory_map_pair |
Definition at line 108 of file engine.hpp.
typedef std::shared_ptr< engine_factory > ai::engine_factory::factory_ptr |
Definition at line 106 of file engine.hpp.
|
inline |
Definition at line 121 of file engine.hpp.
References get_list(), and is_duplicate().
|
inlinevirtual |
Definition at line 130 of file engine.hpp.
|
inlinestatic |
Definition at line 110 of file engine.hpp.
Referenced by ai::engine_cpp::do_parse_engine_from_config(), engine_factory(), ai::readonly_context_impl::get_engine_by_cfg(), and is_duplicate().
|
pure virtual |
Implemented in ai::register_engine_factory< ENGINE >.
|
pure virtual |
Implemented in ai::register_engine_factory< ENGINE >.
|
private |
Definition at line 148 of file engine.cpp.
References ERR_AI_ENGINE, and get_list().
Referenced by engine_factory().