The Battle for Wesnoth  1.19.7+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 >:

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 203 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 205 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

Member Data Documentation

◆ aspects_

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

Definition at line 236 of file aspect.hpp.

Referenced by ai::typesafe_known_aspect< T >::set().

◆ where_

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

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