The Battle for Wesnoth  1.15.2+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:
Inheritance graph

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 97 of file function.hpp.

Member Typedef Documentation

◆ args_list

Definition at line 100 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 102 of file function.hpp.

Member Function Documentation

◆ args()

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

◆ str()

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

Implements wfl::formula_expression.

Definition at line 63 of file function.cpp.

References a, and s.

Member Data Documentation

◆ args_

args_list wfl::function_expression::args_
private

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