#include <formula_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 |
Protected Member Functions | |
| const args_list & | args () const |
Private Attributes | |
| std::string | name_ |
| args_list | args_ |
Definition at line 49 of file formula_function.hpp.
| typedef std::vector<expression_ptr> game_logic::function_expression::args_list |
Definition at line 51 of file formula_function.hpp.
| game_logic::function_expression::function_expression | ( | const std::string & | name, | |
| const args_list & | args, | |||
| int | min_args = -1, |
|||
| int | max_args = -1 | |||
| ) | [inline, explicit] |
Definition at line 52 of file formula_function.hpp.
References args_, and game_logic::formula_expression::set_name().

| const args_list& game_logic::function_expression::args | ( | ) | const [inline, protected] |
Definition at line 69 of file formula_function.hpp.
References args_.
Referenced by game_logic::formula_function_expression::execute(), and str().

| std::string game_logic::function_expression::str | ( | ) | const [virtual] |
Implements game_logic::formula_expression.
Definition at line 43 of file formula_function.cpp.
References args(), and game_logic::formula_expression::get_name().

Definition at line 72 of file formula_function.hpp.
Referenced by args(), and function_expression().
std::string game_logic::function_expression::name_ [private] |
Reimplemented from game_logic::formula_expression.
Definition at line 71 of file formula_function.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:00 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |