The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
ai::typesafe_known_aspect< T > Singleton Reference

#include <aspect.hpp>

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

Public Member Functions

 typesafe_known_aspect (const std::string &name, boost::shared_ptr< typesafe_aspect< 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::stringget_name () const
 

Protected Attributes

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

Detailed Description

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

Definition at line 220 of file aspect.hpp.

Constructor & Destructor Documentation

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

Definition at line 222 of file aspect.hpp.

Member Function Documentation

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

Member Data Documentation

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

Definition at line 253 of file aspect.hpp.

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

template<typename T >
boost::shared_ptr<typesafe_aspect <T> >& ai::typesafe_known_aspect< T >::where_
protected

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