The Battle for Wesnoth  1.15.0-dev
Public Member Functions | List of all members
ai::register_aspect_factory< ASPECT > Class Template Reference

#include <aspect.hpp>

Inheritance diagram for ai::register_aspect_factory< ASPECT >:
Inheritance graph

Public Member Functions

 register_aspect_factory (const std::string &name)
 
aspect_ptr get_new_instance (readonly_context &context, const config &cfg, const std::string &id)
 
- Public Member Functions inherited from ai::aspect_factory
 aspect_factory (const std::string &name)
 
virtual ~aspect_factory ()
 

Additional Inherited Members

- Public Types inherited from ai::aspect_factory
typedef std::shared_ptr< aspect_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::aspect_factory
static factory_mapget_list ()
 

Detailed Description

template<class ASPECT>
class ai::register_aspect_factory< ASPECT >

Definition at line 495 of file aspect.hpp.

Constructor & Destructor Documentation

◆ register_aspect_factory()

template<class ASPECT >
ai::register_aspect_factory< ASPECT >::register_aspect_factory ( const std::string &  name)
inline

Definition at line 497 of file aspect.hpp.

Member Function Documentation

◆ get_new_instance()

template<class ASPECT >
aspect_ptr ai::register_aspect_factory< ASPECT >::get_new_instance ( readonly_context context,
const config cfg,
const std::string &  id 
)
inlinevirtual

Implements ai::aspect_factory.

Definition at line 502 of file aspect.hpp.

References a.


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