#include <property_handler.hpp>


Public Types | |
| typedef boost::shared_ptr< T > | t_ptr |
| typedef std::vector < boost::shared_ptr< T > > | t_ptr_vector |
Public Member Functions | |
| vector_property_handler (const std::string &property, t_ptr_vector &values, boost::function2< void, t_ptr_vector &, const config & > &construction_factory) | |
| component * | handle_get (const path_element &child) |
| bool | handle_change (const path_element &child, const config &cfg) |
| bool | handle_add (const path_element &child, const config &cfg) |
| bool | handle_delete (const path_element &child) |
| std::vector< component * > | handle_get_children () |
Private Member Functions | |
| bool | do_add (int pos, const config &cfg) |
Private Attributes | |
| boost::function2< void, t_ptr_vector &, const config & > | factory_ |
| const std::string | property_ |
| t_ptr_vector & | values_ |
Definition at line 77 of file property_handler.hpp.
| typedef boost::shared_ptr<T> ai::vector_property_handler< T >::t_ptr |
Definition at line 79 of file property_handler.hpp.
| typedef std::vector< boost::shared_ptr<T> > ai::vector_property_handler< T >::t_ptr_vector |
Definition at line 80 of file property_handler.hpp.
| ai::vector_property_handler< T >::vector_property_handler | ( | const std::string & | property, | |
| t_ptr_vector & | values, | |||
| boost::function2< void, t_ptr_vector &, const config & > & | construction_factory | |||
| ) | [inline] |
Definition at line 82 of file property_handler.hpp.
| bool ai::vector_property_handler< T >::do_add | ( | int | pos, | |
| const config & | cfg | |||
| ) | [inline, private] |
Definition at line 144 of file property_handler.hpp.
References ai::vector_property_handler< T >::factory_, and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_add().

| bool ai::vector_property_handler< T >::handle_add | ( | const path_element & | child, | |
| const config & | cfg | |||
| ) | [inline, virtual] |
Implements ai::base_property_handler.
Definition at line 102 of file property_handler.hpp.
References ai::vector_property_handler< T >::do_add(), ai::vector_property_handler< T >::handle_delete(), ai::path_element::id, ai::path_element::position, ai::path_element::property, ai::vector_property_handler< T >::property_, and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_change().


| bool ai::vector_property_handler< T >::handle_change | ( | const path_element & | child, | |
| const config & | cfg | |||
| ) | [inline, virtual] |
Implements ai::base_property_handler.
Definition at line 94 of file property_handler.hpp.
References ai::vector_property_handler< T >::handle_add(), and ai::vector_property_handler< T >::handle_delete().

| bool ai::vector_property_handler< T >::handle_delete | ( | const path_element & | child | ) | [inline, virtual] |
Implements ai::base_property_handler.
Definition at line 117 of file property_handler.hpp.
References ai::path_element::id, and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_add(), and ai::vector_property_handler< T >::handle_change().

| component* ai::vector_property_handler< T >::handle_get | ( | const path_element & | child | ) | [inline, virtual] |
Implements ai::base_property_handler.
Definition at line 86 of file property_handler.hpp.
References ai::vector_property_handler< T >::values_.
| std::vector<component*> ai::vector_property_handler< T >::handle_get_children | ( | ) | [inline, virtual] |
Implements ai::base_property_handler.
Definition at line 134 of file property_handler.hpp.
References ai::vector_property_handler< T >::values_.
boost::function2<void, t_ptr_vector&, const config&> ai::vector_property_handler< T >::factory_ [private] |
Definition at line 159 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::do_add().
const std::string ai::vector_property_handler< T >::property_ [private] |
Definition at line 160 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::handle_add().
t_ptr_vector& ai::vector_property_handler< T >::values_ [private] |
Definition at line 161 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::do_add(), ai::vector_property_handler< T >::handle_add(), ai::vector_property_handler< T >::handle_delete(), ai::vector_property_handler< T >::handle_get(), and ai::vector_property_handler< T >::handle_get_children().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:30 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |