The Battle for Wesnoth  1.19.5+dev
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
wfl::function_expression Class Reference

#include <function.hpp>

Inheritance diagram for wfl::function_expression:

Public Types

typedef std::vector< expression_ptrargs_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 wfl::formula_expression
 formula_expression (const std::string &name="")
 
virtual ~formula_expression ()
 
variant evaluate (const formula_callable &variables, formula_debugger *fdb=nullptr) const
 
std::string get_name () const
 

Protected Member Functions

const args_listargs () const
 

Private Attributes

args_list args_
 

Detailed Description

Definition at line 102 of file function.hpp.

Member Typedef Documentation

◆ args_list

Definition at line 105 of file function.hpp.

Constructor & Destructor Documentation

◆ function_expression()

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

Definition at line 107 of file function.hpp.

References args_.

Member Function Documentation

◆ args()

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

Definition at line 123 of file function.hpp.

References args_.

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

◆ str()

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

Implements wfl::formula_expression.

Definition at line 73 of file function.cpp.

References s.

Member Data Documentation

◆ args_

args_list wfl::function_expression::args_
private

Definition at line 129 of file function.hpp.

Referenced by args(), and function_expression().


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