#include <variable.hpp>
Classes | |
struct | pointer_proxy |
Public Types | |
typedef std::pair< std::string, vconfig > | value_type |
typedef std::forward_iterator_tag | iterator_category |
typedef int | difference_type |
typedef const pointer_proxy | pointer |
typedef const value_type | reference |
typedef config::all_children_iterator | Itor |
Public Member Functions | |
all_children_iterator (const Itor &i) | |
all_children_iterator (const Itor &i, const boost::shared_ptr< const config > &cache) | |
all_children_iterator & | operator++ () |
all_children_iterator | operator++ (int) |
reference | operator* () const |
pointer | operator-> () const |
std::string | get_key () const |
vconfig | get_child () const |
void | disable_insertion () |
bool | operator== (const all_children_iterator &i) const |
bool | operator!= (const all_children_iterator &i) const |
Private Attributes | |
Itor | i_ |
int | inner_index_ |
boost::shared_ptr< const config > | cache_ |
Definition at line 95 of file variable.hpp.
Definition at line 101 of file variable.hpp.
typedef std::forward_iterator_tag vconfig::all_children_iterator::iterator_category |
Definition at line 100 of file variable.hpp.
Definition at line 104 of file variable.hpp.
typedef const pointer_proxy vconfig::all_children_iterator::pointer |
Definition at line 102 of file variable.hpp.
typedef const value_type vconfig::all_children_iterator::reference |
Definition at line 103 of file variable.hpp.
typedef std::pair<std::string, vconfig> vconfig::all_children_iterator::value_type |
Definition at line 97 of file variable.hpp.
|
explicit |
Definition at line 311 of file variable.cpp.
vconfig::all_children_iterator::all_children_iterator | ( | const Itor & | i, |
const boost::shared_ptr< const config > & | cache | ||
) |
Definition at line 316 of file variable.cpp.
|
inline |
Definition at line 116 of file variable.hpp.
References inner_index_.
Referenced by lua_common::impl_vconfig_get().
vconfig vconfig::all_children_iterator::get_child | ( | ) | const |
Definition at line 374 of file variable.cpp.
References vconfig::cache_, vconfig::empty_vconfig(), i_, and vconfig::vconfig().
Referenced by basic_unit_filter_impl::basic_unit_filter_impl(), game_events::conditional_passed(), terrain_filter::get_locations(), lua_common::impl_vconfig_get(), side_filter::match(), and terrain_filter::match().
std::string vconfig::all_children_iterator::get_key | ( | ) | const |
Definition at line 365 of file variable.cpp.
References i_, and vconfig::vconfig().
Referenced by basic_unit_filter_impl::basic_unit_filter_impl(), game_events::conditional_passed(), terrain_filter::get_locations(), lua_common::impl_vconfig_get(), side_filter::match(), and terrain_filter::match().
|
inline |
Definition at line 119 of file variable.hpp.
References operator==().
vconfig::all_children_iterator::reference vconfig::all_children_iterator::operator* | ( | ) | const |
Definition at line 353 of file variable.cpp.
References preferences::get_child().
vconfig::all_children_iterator & vconfig::all_children_iterator::operator++ | ( | ) |
Definition at line 321 of file variable.cpp.
References variable_info< vit >::as_array(), resources::gamedata, game_data::get_variable_access_read(), i_, and vconfig::vconfig().
vconfig::all_children_iterator vconfig::all_children_iterator::operator++ | ( | int | ) |
Definition at line 346 of file variable.cpp.
References i.
vconfig::all_children_iterator::pointer vconfig::all_children_iterator::operator-> | ( | ) | const |
Definition at line 358 of file variable.cpp.
References preferences::get_child().
bool vconfig::all_children_iterator::operator== | ( | const all_children_iterator & | i | ) | const |
Definition at line 393 of file variable.cpp.
References i_, i_, and inner_index_.
Referenced by operator!=().
|
private |
Definition at line 136 of file variable.hpp.
|
private |
Definition at line 123 of file variable.hpp.
Referenced by operator==().
|
private |
Definition at line 135 of file variable.hpp.
Referenced by disable_insertion(), and operator==().