#include <formula_function.hpp>
Public Member Functions | |
virtual | ~function_symbol_table () |
virtual void | add_formula_function (const std::string &name, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &args) |
virtual expression_ptr | create_function (const std::string &fn, const std::vector< expression_ptr > &args) const |
std::vector< std::string > | get_function_names () const |
Private Attributes | |
std::map< std::string, formula_function > | custom_formulas_ |
Definition at line 97 of file formula_function.hpp.
virtual game_logic::function_symbol_table::~function_symbol_table | ( | ) | [inline, virtual] |
Definition at line 100 of file formula_function.hpp.
void game_logic::function_symbol_table::add_formula_function | ( | const std::string & | name, | |
const_formula_ptr | formula, | |||
const_formula_ptr | precondition, | |||
const std::vector< std::string > & | args | |||
) | [virtual] |
Definition at line 607 of file formula_function.cpp.
References custom_formulas_.
Referenced by game_logic::parse_expression().
expression_ptr game_logic::function_symbol_table::create_function | ( | const std::string & | fn, | |
const std::vector< expression_ptr > & | args | |||
) | const [virtual] |
Definition at line 612 of file formula_function.cpp.
References custom_formulas_.
Referenced by game_logic::create_function().
std::vector< std::string > game_logic::function_symbol_table::get_function_names | ( | ) | const |
std::map<std::string, formula_function> game_logic::function_symbol_table::custom_formulas_ [private] |
Definition at line 98 of file formula_function.hpp.
Referenced by add_formula_function(), create_function(), and get_function_names().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |