#include <function.hpp>
Public Types | |
typedef std::vector < expression_ptr > | args_list |
Public Member Functions | |
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 game_logic::formula_expression | |
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 |
Protected Member Functions | |
const args_list & | args () const |
Private Attributes | |
std::string | name_ |
args_list | args_ |
Definition at line 48 of file function.hpp.
typedef std::vector<expression_ptr> game_logic::function_expression::args_list |
Definition at line 50 of file function.hpp.
|
inlineexplicit |
Definition at line 51 of file function.hpp.
References args_, and game_logic::formula_expression::set_name().
|
inlineprotected |
Definition at line 68 of file function.hpp.
References args_.
Referenced by game_logic::formula_function_expression::execute().
|
virtual |
Implements game_logic::formula_expression.
Definition at line 42 of file function.cpp.
|
private |
Definition at line 71 of file function.hpp.
Referenced by args(), and function_expression().
|
private |
Definition at line 70 of file function.hpp.