#include <variable.hpp>
Public Types | |
typedef std::pair< const std::string, const vconfig > | value_type |
typedef std::forward_iterator_tag | iterator_category |
typedef int | difference_type |
typedef std::auto_ptr< value_type > | pointer |
typedef value_type & | reference |
typedef config::all_children_iterator | Itor |
Public Member Functions | |
all_children_iterator (Itor i=Itor()) | |
all_children_iterator & | operator++ () |
all_children_iterator | operator++ (int) |
value_type | operator* () const |
pointer | operator-> () const |
const std::string | get_key () const |
size_t | get_index () const |
const vconfig | get_child () const |
bool | operator== (all_children_iterator i) const |
bool | operator!= (all_children_iterator i) const |
Private Attributes | |
Itor | i_ |
unsigned | inner_index_ |
unsigned | index_offset_ |
Definition at line 60 of file variable.hpp.
typedef std::pair<const std::string, const vconfig> vconfig::all_children_iterator::value_type |
Definition at line 61 of file variable.hpp.
typedef std::forward_iterator_tag vconfig::all_children_iterator::iterator_category |
Definition at line 62 of file variable.hpp.
typedef int vconfig::all_children_iterator::difference_type |
Definition at line 63 of file variable.hpp.
typedef std::auto_ptr<value_type> vconfig::all_children_iterator::pointer |
Definition at line 64 of file variable.hpp.
Definition at line 65 of file variable.hpp.
Definition at line 66 of file variable.hpp.
Definition at line 331 of file variable.cpp.
vconfig::all_children_iterator & vconfig::all_children_iterator::operator++ | ( | ) |
Definition at line 336 of file variable.cpp.
References variable_info::as_array(), variable_info::explicit_index, config::all_children_iterator::get_child(), config::all_children_iterator::get_key(), i_, index_offset_, inner_index_, variable_info::is_valid, variable_info::TYPE_CONTAINER, and vconfig::vconfig().
Referenced by operator++().
vconfig::all_children_iterator vconfig::all_children_iterator::operator++ | ( | int | ) |
std::pair< const std::string, const vconfig > vconfig::all_children_iterator::operator* | ( | ) | const |
vconfig::all_children_iterator::pointer vconfig::all_children_iterator::operator-> | ( | ) | const |
const std::string vconfig::all_children_iterator::get_key | ( | ) | const |
Definition at line 370 of file variable.cpp.
References config::all_children_iterator::get_child(), config::all_children_iterator::get_key(), i_, and vconfig::vconfig().
Referenced by game_events::conditional_passed(), terrain_filter::get_locations(), terrain_filter::match(), unit::matches_filter(), game_events::matches_special_filter(), operator*(), and operator->().
size_t vconfig::all_children_iterator::get_index | ( | ) | const |
Definition at line 396 of file variable.cpp.
References config::all_children_iterator::get_index(), i_, and index_offset_.
const vconfig vconfig::all_children_iterator::get_child | ( | ) | const |
Definition at line 379 of file variable.cpp.
References variable_info::as_array(), variable_info::as_container(), config::all_children_iterator::get_child(), config::all_children_iterator::get_key(), i_, inner_index_, variable_info::is_valid, variable_info::TYPE_CONTAINER, and vconfig::vconfig().
Referenced by game_events::conditional_passed(), terrain_filter::get_locations(), terrain_filter::match(), unit::matches_filter(), game_events::matches_special_filter(), operator*(), and operator->().
bool vconfig::all_children_iterator::operator== | ( | all_children_iterator | i | ) | const |
bool vconfig::all_children_iterator::operator!= | ( | all_children_iterator | i | ) | const |
Itor vconfig::all_children_iterator::i_ [private] |
Definition at line 83 of file variable.hpp.
Referenced by get_child(), get_index(), get_key(), operator!=(), operator++(), and operator==().
unsigned vconfig::all_children_iterator::inner_index_ [private] |
Definition at line 84 of file variable.hpp.
Referenced by get_child(), operator!=(), operator++(), and operator==().
unsigned vconfig::all_children_iterator::index_offset_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |