The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
game_logic::formula_function_expression Class Reference

#include <function.hpp>

Inheritance diagram for game_logic::formula_function_expression:
Inheritance graph

Public Member Functions

 formula_function_expression (const std::string &name, const args_list &args, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &arg_names)
 
- Public Member Functions inherited from game_logic::function_expression
 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
 

Private Member Functions

variant execute (const formula_callable &variables, formula_debugger *fdb) const
 

Private Attributes

const_formula_ptr formula_
 
const_formula_ptr precondition_
 
std::vector< std::stringarg_names_
 
int star_arg_
 

Additional Inherited Members

- Public Types inherited from game_logic::function_expression
typedef std::vector
< expression_ptr
args_list
 
- Protected Member Functions inherited from game_logic::function_expression
const args_listargs () const
 

Detailed Description

Definition at line 87 of file function.hpp.

Constructor & Destructor Documentation

game_logic::formula_function_expression::formula_function_expression ( const std::string name,
const args_list args,
const_formula_ptr  formula,
const_formula_ptr  precondition,
const std::vector< std::string > &  arg_names 
)
explicit

Definition at line 1481 of file function.cpp.

References arg_names_, and star_arg_.

Member Function Documentation

variant game_logic::formula_function_expression::execute ( const formula_callable variables,
formula_debugger fdb 
) const
privatevirtual

Member Data Documentation

std::vector<std::string> game_logic::formula_function_expression::arg_names_
private

Definition at line 94 of file function.hpp.

Referenced by execute(), and formula_function_expression().

const_formula_ptr game_logic::formula_function_expression::formula_
private

Definition at line 92 of file function.hpp.

Referenced by execute().

const_formula_ptr game_logic::formula_function_expression::precondition_
private

Definition at line 93 of file function.hpp.

Referenced by execute().

int game_logic::formula_function_expression::star_arg_
private

Definition at line 95 of file function.hpp.

Referenced by execute(), and formula_function_expression().


The documentation for this class was generated from the following files: