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

#include <function.hpp>

Inheritance diagram for game_logic::function_expression:
Inheritance graph

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_listargs () const
 

Private Attributes

std::string name_
 
args_list args_
 

Detailed Description

Definition at line 48 of file function.hpp.

Member Typedef Documentation

Definition at line 50 of file function.hpp.

Constructor & Destructor Documentation

game_logic::function_expression::function_expression ( const std::string name,
const args_list args,
int  min_args = -1,
int  max_args = -1 
)
inlineexplicit

Definition at line 51 of file function.hpp.

References args_, and game_logic::formula_expression::set_name().

Member Function Documentation

const args_list& game_logic::function_expression::args ( ) const
inlineprotected

Definition at line 68 of file function.hpp.

References args_.

Referenced by game_logic::formula_function_expression::execute().

std::string game_logic::function_expression::str ( ) const
virtual

Implements game_logic::formula_expression.

Definition at line 42 of file function.cpp.

Member Data Documentation

args_list game_logic::function_expression::args_
private

Definition at line 71 of file function.hpp.

Referenced by args(), and function_expression().

std::string game_logic::function_expression::name_
private

Definition at line 70 of file function.hpp.


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