#include <function.hpp>
Public Member Functions | |
void | add_function (const std::string &name, formula_function_ptr fcn) |
expression_ptr | create_function (const std::string &fn, const std::vector< expression_ptr > &args) const |
std::vector< std::string > | get_function_names () const |
bool | empty () |
Private Attributes | |
functions_map | custom_formulas_ |
Definition at line 136 of file function.hpp.
void game_logic::function_symbol_table::add_function | ( | const std::string & | name, |
formula_function_ptr | fcn | ||
) |
Definition at line 1531 of file function.cpp.
References custom_formulas_.
Referenced by ai::formula_ai::add_formula_function().
expression_ptr game_logic::function_symbol_table::create_function | ( | const std::string & | fn, |
const std::vector< expression_ptr > & | args | ||
) | const |
Definition at line 1536 of file function.cpp.
References custom_formulas_.
Referenced by game_logic::create_function().
|
inline |
Definition at line 142 of file function.hpp.
std::vector< std::string > game_logic::function_symbol_table::get_function_names | ( | ) | const |
Definition at line 1546 of file function.cpp.
References custom_formulas_.
|
private |
Definition at line 137 of file function.hpp.
Referenced by add_function(), create_function(), and get_function_names().