The Battle for Wesnoth  1.15.0+dev
Public Member Functions | List of all members
ai::register_engine_factory< ENGINE > Class Template Reference

#include <engine.hpp>

Inheritance diagram for ai::register_engine_factory< ENGINE >:
Inheritance graph

Public Member Functions

 register_engine_factory (const std::string &name)
 
virtual engine_ptr get_new_instance (readonly_context &ai, const config &cfg)
 
virtual engine_ptr get_new_instance (readonly_context &ai, const std::string &name)
 
- Public Member Functions inherited from ai::engine_factory
 engine_factory (const std::string &name)
 
virtual ~engine_factory ()
 

Additional Inherited Members

- Public Types inherited from ai::engine_factory
typedef std::shared_ptr< engine_factoryfactory_ptr
 
typedef std::map< std::string, factory_ptrfactory_map
 
typedef std::pair< const std::string, factory_ptrfactory_map_pair
 
- Static Public Member Functions inherited from ai::engine_factory
static factory_mapget_list ()
 

Detailed Description

template<class ENGINE>
class ai::register_engine_factory< ENGINE >

Definition at line 149 of file engine.hpp.

Constructor & Destructor Documentation

◆ register_engine_factory()

template<class ENGINE >
ai::register_engine_factory< ENGINE >::register_engine_factory ( const std::string &  name)
inline

Definition at line 151 of file engine.hpp.

Member Function Documentation

◆ get_new_instance() [1/2]

template<class ENGINE >
virtual engine_ptr ai::register_engine_factory< ENGINE >::get_new_instance ( readonly_context ai,
const config cfg 
)
inlinevirtual

Implements ai::engine_factory.

Definition at line 156 of file engine.hpp.

References e.

◆ get_new_instance() [2/2]

template<class ENGINE >
virtual engine_ptr ai::register_engine_factory< ENGINE >::get_new_instance ( readonly_context ai,
const std::string &  name 
)
inlinevirtual

Implements ai::engine_factory.

Definition at line 164 of file engine.hpp.

References name().


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