The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Variables
function.cpp File Reference
#include "formula/callable_objects.hpp"
#include "formula/debugger.hpp"
#include "formula/function.hpp"
#include "game_display.hpp"
#include "game_config.hpp"
#include "log.hpp"
#include "color.hpp"
#include <boost/math/constants/constants.hpp>
#include <cctype>
#include <deque>
Include dependency graph for function.cpp:

Go to the source code of this file.

Classes

class  wfl::builtins::debug_function
 
class  wfl::builtins::dir_function
 
class  wfl::builtins::if_function
 
class  wfl::builtins::switch_function
 
class  wfl::builtins::abs_function
 
class  wfl::builtins::min_function
 
class  wfl::builtins::max_function
 
class  wfl::builtins::debug_float_function
 
class  wfl::builtins::debug_print_function
 
class  wfl::builtins::debug_profile_function
 
class  wfl::builtins::keys_function
 
class  wfl::builtins::values_function
 
class  wfl::builtins::tolist_function
 
class  wfl::builtins::tomap_function
 
class  wfl::builtins::substring_function
 
class  wfl::builtins::replace_function
 
class  wfl::builtins::length_function
 
class  wfl::builtins::concatenate_function
 
class  wfl::builtins::str_upper_function
 
class  wfl::builtins::str_lower_function
 
class  wfl::builtins::sin_function
 
class  wfl::builtins::cos_function
 
class  wfl::builtins::tan_function
 
class  wfl::builtins::asin_function
 
class  wfl::builtins::acos_function
 
class  wfl::builtins::atan_function
 
class  wfl::builtins::sqrt_function
 
class  wfl::builtins::cbrt_function
 
class  wfl::builtins::root_function
 
class  wfl::builtins::log_function
 
class  wfl::builtins::exp_function
 
class  wfl::builtins::pi_function
 
class  wfl::builtins::hypot_function
 
class  wfl::builtins::index_of_function
 
class  wfl::builtins::choose_function
 
class  wfl::builtins::wave_function
 
class  wfl::builtins::sort_function
 
class  wfl::builtins::reverse_function
 
class  wfl::builtins::contains_string_function
 
class  wfl::builtins::find_string_function
 
class  wfl::builtins::filter_function
 
class  wfl::builtins::find_function
 
class  wfl::builtins::map_function
 
class  wfl::builtins::take_while_function
 
class  wfl::builtins::zip_function
 
struct  wfl::builtins::zip_function::indexer
 
struct  wfl::builtins::zip_function::comparator
 
class  wfl::builtins::reduce_function
 
class  wfl::builtins::sum_function
 
class  wfl::builtins::head_function
 
class  wfl::builtins::tail_function
 
class  wfl::builtins::size_function
 
class  wfl::builtins::null_function
 
class  wfl::builtins::ceil_function
 
class  wfl::builtins::round_function
 
class  wfl::builtins::floor_function
 
class  wfl::builtins::trunc_function
 
class  wfl::builtins::frac_function
 
class  wfl::builtins::sgn_function
 
class  wfl::builtins::as_decimal_function
 
class  wfl::builtins::loc_function
 
class  wfl::builtins::pair_function
 
class  wfl::builtins::distance_between_function
 
class  wfl::builtins::adjacent_locs_function
 
class  wfl::builtins::are_adjacent_function
 
class  wfl::builtins::relative_dir_function
 
class  wfl::builtins::direction_from_function
 
class  wfl::builtins::rotate_loc_around_function
 
class  wfl::builtins::type_function
 
class  wfl::actions::safe_call_function
 
class  wfl::actions::set_var_function
 

Namespaces

 wfl
 
 wfl::builtins
 
 wfl::actions
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_SF   LOG_STREAM(info, log_scripting_formula)
 
#define WRN_SF   LOG_STREAM(warn, log_scripting_formula)
 
#define ERR_SF   LOG_STREAM(err, log_scripting_formula)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_scripting_formula ("scripting/formula")
 
static std::deque< std::string > wfl::call_stack
 

Macro Definition Documentation

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 30 of file function.cpp.

Referenced by wfl::formula_function_expression::execute().

#define ERR_SF   LOG_STREAM(err, log_scripting_formula)

Definition at line 34 of file function.cpp.

#define LOG_SF   LOG_STREAM(info, log_scripting_formula)
#define WRN_SF   LOG_STREAM(warn, log_scripting_formula)

Definition at line 33 of file function.cpp.

Variable Documentation

variant a_
mutable
variant b_
mutable
expression_ptr expr_

Definition at line 849 of file function.cpp.

Referenced by BOOST_FUSION_ADAPT_STRUCT().

const formula_callable* fallback_
lg::log_domain log_engine("engine")
static
lg::log_domain log_scripting_formula("scripting/formula")
static