The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
wfl::wrapper_formula Class Reference

#include <function.hpp>

Inheritance diagram for wfl::wrapper_formula:

Public Member Functions

 wrapper_formula ()
 
 wrapper_formula (expression_ptr arg)
 
virtual ~wrapper_formula ()
 
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
 

Private Member Functions

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

Private Attributes

expression_ptr arg_
 

Detailed Description

Definition at line 266 of file function.hpp.

Constructor & Destructor Documentation

◆ wrapper_formula() [1/2]

wfl::wrapper_formula::wrapper_formula ( )
inline

Definition at line 269 of file function.hpp.

◆ wrapper_formula() [2/2]

wfl::wrapper_formula::wrapper_formula ( expression_ptr  arg)
inline

Definition at line 274 of file function.hpp.

◆ ~wrapper_formula()

virtual wfl::wrapper_formula::~wrapper_formula ( )
inlinevirtual

Definition at line 280 of file function.hpp.

Member Function Documentation

◆ execute()

virtual variant wfl::wrapper_formula::execute ( const formula_callable variables,
formula_debugger fdb = nullptr 
) const
inlineprivatevirtual

Implements wfl::formula_expression.

Definition at line 294 of file function.hpp.

References arg_.

◆ str()

virtual std::string wfl::wrapper_formula::str ( ) const
inlinevirtual

Implements wfl::formula_expression.

Definition at line 284 of file function.hpp.

References arg_.

Member Data Documentation

◆ arg_

expression_ptr wfl::wrapper_formula::arg_
private

Definition at line 303 of file function.hpp.

Referenced by execute(), and str().


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