#include <function.hpp>
Public Member Functions | |
formula_function_expression (const std::string &name, const args_list &args, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &arg_names) | |
Public Member Functions inherited from wfl::function_expression | |
function_expression (const std::string &name, const args_list &args, int min_args=-1, int max_args=-1) | |
virtual std::string | str () const |
Public Member Functions inherited from wfl::formula_expression | |
formula_expression (const std::string &name="") | |
virtual | ~formula_expression () |
variant | evaluate (const formula_callable &variables, formula_debugger *fdb=nullptr) const |
std::string | get_name () const |
Private Member Functions | |
variant | execute (const formula_callable &variables, formula_debugger *fdb) const |
Private Attributes | |
const_formula_ptr | formula_ |
const_formula_ptr | precondition_ |
std::vector< std::string > | arg_names_ |
int | star_arg_ |
Additional Inherited Members | |
Public Types inherited from wfl::function_expression | |
typedef std::vector< expression_ptr > | args_list |
Protected Member Functions inherited from wfl::function_expression | |
const args_list & | args () const |
Definition at line 152 of file function.hpp.
|
explicit |
Definition at line 1481 of file function.cpp.
References arg_names_, n, utf8::size(), and star_arg_.
|
privatevirtual |
Implements wfl::formula_expression.
Definition at line 1501 of file function.cpp.
References wfl::map_formula_callable::add(), arg_names_, wfl::function_expression::args(), wfl::variant::as_callable(), DBG_NG, formula_, indent, n, precondition_, wfl::map_formula_callable::set_fallback(), and star_arg_.
|
private |
Definition at line 167 of file function.hpp.
Referenced by execute(), and formula_function_expression().
|
private |
Definition at line 164 of file function.hpp.
Referenced by execute().
|
private |
Definition at line 165 of file function.hpp.
Referenced by execute().
|
private |
Definition at line 169 of file function.hpp.
Referenced by execute(), and formula_function_expression().