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::wrapper_formula Class Reference

#include <function.hpp>

Inheritance diagram for game_logic::wrapper_formula:
Inheritance graph

Public Member Functions

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

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

Private Attributes

expression_ptr arg_
 

Detailed Description

Definition at line 151 of file function.hpp.

Constructor & Destructor Documentation

game_logic::wrapper_formula::wrapper_formula ( )
inline

Definition at line 153 of file function.hpp.

game_logic::wrapper_formula::wrapper_formula ( expression_ptr  arg)
inline

Definition at line 158 of file function.hpp.

virtual game_logic::wrapper_formula::~wrapper_formula ( )
inlinevirtual

Definition at line 163 of file function.hpp.

Member Function Documentation

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

Implements game_logic::formula_expression.

Definition at line 176 of file function.hpp.

References arg_.

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

Implements game_logic::formula_expression.

Definition at line 167 of file function.hpp.

References arg_.

Member Data Documentation

expression_ptr game_logic::wrapper_formula::arg_
private

Definition at line 184 of file function.hpp.

Referenced by execute(), and str().


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