#include <variable_info.hpp>
Public Types | |
typedef variable_info_detail::maybe_const < vit, config >::type | t_config |
Protected Member Functions | |
void | throw_on_invalid () const |
void | calculate_value () |
Protected Attributes | |
std::string | name_ |
variable_info_detail::variable_info_state < vit > | state_ |
bool | valid_ |
Definition at line 36 of file variable_info.hpp.
typedef variable_info_detail::maybe_const<vit,config>::type variable_info< vit >::t_config |
Definition at line 40 of file variable_info.hpp.
variable_info< vit >::variable_info | ( | const std::string & | varname, |
t_config & | vars | ||
) |
Doesn't throw.
Definition at line 507 of file variable_info.cpp.
References variable_info< vit >::calculate_value(), and variable_info< vit >::valid_.
variable_info< vit >::~variable_info | ( | ) |
Definition at line 523 of file variable_info.cpp.
maybe_const< vit, config::child_itors >::type variable_info< vit >::as_array | ( | ) | const |
might throw invalid_variablename_exception
Definition at line 593 of file variable_info.cpp.
Referenced by basic_unit_filter_impl::internal_matches_filter(), terrain_filter::match_internal(), vconfig::all_children_iterator::operator++(), and game_events::WML_HANDLER_FUNCTION().
maybe_const< vit, config >::type & variable_info< vit >::as_container | ( | ) | const |
might throw invalid_variablename_exception
Definition at line 586 of file variable_info.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), game_data::get_variable_cfg(), luaW_checkvariable(), luaW_pushvariable(), and game_events::WML_HANDLER_FUNCTION().
maybe_const< vit, config::attribute_value >::type & variable_info< vit >::as_scalar | ( | ) | const |
might throw invalid_variablename_exception NOTE: If vit == vit_const, then the lifime of the returned const attribute_value& might end with the lifetime of this object.
Definition at line 579 of file variable_info.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), game_data::get_variable(), game_data::get_variable_const(), luaW_checkvariable(), luaW_pushvariable(), and game_events::WML_HANDLER_FUNCTION().
|
protected |
Definition at line 528 of file variable_info.cpp.
Referenced by variable_info< vit >::variable_info().
bool variable_info< vit >::exists_as_attribute | ( | ) | const |
might throw invalid_variablename_exception
Definition at line 662 of file variable_info.cpp.
References variable_info_detail::state_named, and variable_info_detail::state_temporary.
Referenced by BOOST_AUTO_TEST_CASE(), and luaW_pushvariable().
bool variable_info< vit >::exists_as_container | ( | ) | const |
might throw invalid_variablename_exception
Definition at line 668 of file variable_info.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and luaW_pushvariable().
bool variable_info< vit >::explicit_index | ( | ) | const |
Doesn't throw.
Definition at line 572 of file variable_info.cpp.
References variable_info_detail::state_indexed, and variable_info_detail::state_start.
Referenced by game_events::WML_HANDLER_FUNCTION().
std::string variable_info< vit >::get_error_message | ( | ) | const |
Referenced by luaW_checkvariable(), and luaW_pushvariable().
std::string variable_info< vit_const >::get_error_message | ( | ) | const |
Definition at line 609 of file variable_info.cpp.
std::string variable_info< vit_create_if_not_existent >::get_error_message | ( | ) | const |
Definition at line 615 of file variable_info.cpp.
std::string variable_info< vit_throw_if_not_existent >::get_error_message | ( | ) | const |
Definition at line 621 of file variable_info.cpp.
|
protected |
Definition at line 600 of file variable_info.cpp.
|
protected |
Definition at line 64 of file variable_info.hpp.
|
protected |
Definition at line 65 of file variable_info.hpp.
|
protected |
Definition at line 67 of file variable_info.hpp.
Referenced by variable_info< vit >::variable_info().