#include <function.hpp>
Public Member Functions | |
formula_expression () | |
virtual | ~formula_expression () |
variant | evaluate (const formula_callable &variables, formula_debugger *fdb=nullptr) const |
void | set_name (const char *name) |
const char * | get_name () const |
virtual std::string | str () const =0 |
Private Member Functions | |
virtual variant | execute (const formula_callable &variables, formula_debugger *fdb=nullptr) const =0 |
Private Attributes | |
const char * | name_ |
Friends | |
class | formula_debugger |
Definition at line 24 of file function.hpp.
|
inline |
Definition at line 26 of file function.hpp.
|
inlinevirtual |
Definition at line 27 of file function.hpp.
|
inline |
Definition at line 28 of file function.hpp.
References game_logic::evaluate_arg_callback(), execute(), and name_.
|
privatepure virtual |
Implemented in game_logic::wrapper_formula, and game_logic::formula_function_expression.
Referenced by evaluate(), and game_logic::formula_debugger::evaluate_arg_callback().
|
inline |
Definition at line 38 of file function.hpp.
References name_.
|
inline |
Definition at line 36 of file function.hpp.
References name_.
Referenced by game_logic::function_expression::function_expression().
|
pure virtual |
Implemented in game_logic::wrapper_formula, and game_logic::function_expression.
Referenced by game_logic::formula_debugger::evaluate_arg_callback().
|
friend |
Definition at line 43 of file function.hpp.
|
private |
Definition at line 42 of file function.hpp.
Referenced by evaluate(), get_name(), and set_name().