The Battle for Wesnoth  1.17.23+dev
Public Member Functions | Private Types | Private Attributes | List of all members
ai::facets_property_handler< T > Class Template Reference

#include <property_handler.hpp>

Inheritance diagram for ai::facets_property_handler< T >:

Public Member Functions

 facets_property_handler (const std::string &property, ptr_vector &values, ptr &def, std::function< void(ptr_vector &, const config &)> &construction_factory)
componenthandle_get (const path_element &child)
bool handle_change (const path_element &child, config cfg)
std::vector< component * > handle_get_children ()
- Public Member Functions inherited from ai::vector_property_handler< T >
 vector_property_handler (const std::string &property, ptr_vector &values, std::function< void(ptr_vector &, const config &)> &construction_factory)
bool handle_add (const path_element &child, const config &cfg)
bool handle_delete (const path_element &child)
- Public Member Functions inherited from ai::base_property_handler
virtual ~base_property_handler ()

Private Types

typedef vector_property_handler< T >::ptr ptr
typedef vector_property_handler< T >::ptr_vector ptr_vector

Private Attributes


Additional Inherited Members

- Public Types inherited from ai::vector_property_handler< T >
typedef std::shared_ptr< T > ptr
typedef std::vector< std::shared_ptr< T > > ptr_vector
- Protected Member Functions inherited from ai::vector_property_handler< T >
void call_factory (ptr_vector &vec, const config &cfg)

Detailed Description

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

Definition at line 169 of file property_handler.hpp.

Member Typedef Documentation

◆ ptr

template<typename T >
typedef vector_property_handler<T>::ptr ai::facets_property_handler< T >::ptr

Definition at line 170 of file property_handler.hpp.

◆ ptr_vector

template<typename T >
typedef vector_property_handler<T>::ptr_vector ai::facets_property_handler< T >::ptr_vector

Definition at line 171 of file property_handler.hpp.

Constructor & Destructor Documentation

◆ facets_property_handler()

template<typename T >
ai::facets_property_handler< T >::facets_property_handler ( const std::string &  property,
ptr_vector values,
ptr def,
std::function< void(ptr_vector &, const config &)> &  construction_factory 

Definition at line 174 of file property_handler.hpp.

Member Function Documentation

◆ handle_change()

template<typename T >
bool ai::facets_property_handler< T >::handle_change ( const path_element child,
config  cfg 

◆ handle_get()

template<typename T >
component* ai::facets_property_handler< T >::handle_get ( const path_element child)

◆ handle_get_children()

template<typename T >
std::vector<component*> ai::facets_property_handler< T >::handle_get_children ( )

Member Data Documentation

◆ default_

template<typename T >
ptr& ai::facets_property_handler< T >::default_

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