The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Protected Attributes | List of all members
ai::typesafe_known_aspect< T > Class Template Reference

#include <aspect.hpp>

Inheritance diagram for ai::typesafe_known_aspect< T >:
Inheritance graph

Public Member Functions

 typesafe_known_aspect (const std::string &name, typesafe_aspect_ptr< T > &where, aspect_map &aspects)
 
void set (aspect_ptr a)
 
virtual void add_facet (const config &cfg)
 
- Public Member Functions inherited from ai::known_aspect
 known_aspect (const std::string &name)
 
virtual ~known_aspect ()
 
const std::string & get_name () const
 

Protected Attributes

typesafe_aspect_ptr< T > & where_
 
aspect_mapaspects_
 
- Protected Attributes inherited from ai::known_aspect
const std::string name_
 

Detailed Description

template<typename T>
class ai::typesafe_known_aspect< T >

Definition at line 212 of file aspect.hpp.

Constructor & Destructor Documentation

◆ typesafe_known_aspect()

template<typename T >
ai::typesafe_known_aspect< T >::typesafe_known_aspect ( const std::string &  name,
typesafe_aspect_ptr< T > &  where,
aspect_map aspects 
)
inline

Definition at line 214 of file aspect.hpp.

Member Function Documentation

◆ add_facet()

template<typename T >
virtual void ai::typesafe_known_aspect< T >::add_facet ( const config cfg)
inlinevirtual

◆ set()

template<typename T >
void ai::typesafe_known_aspect< T >::set ( aspect_ptr  a)
inlinevirtual

Implements ai::known_aspect.

Definition at line 219 of file aspect.hpp.

References a, c, debug, ai::aspect::get_name(), ai::aspect::log(), and LOG_STREAM.

Member Data Documentation

◆ aspects_

template<typename T >
aspect_map& ai::typesafe_known_aspect< T >::aspects_
protected

Definition at line 245 of file aspect.hpp.

◆ where_

template<typename T >
typesafe_aspect_ptr<T>& ai::typesafe_known_aspect< T >::where_
protected

Definition at line 244 of file aspect.hpp.


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