The Battle for Wesnoth  1.17.12+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
wfl::decimal_expression Class Reference
Inheritance diagram for wfl::decimal_expression:

Public Member Functions

 decimal_expression (int i, int f)
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

variant execute (const formula_callable &, formula_debugger *) const

Private Attributes

int i_
int f_

Detailed Description

Definition at line 923 of file formula.cpp.

Constructor & Destructor Documentation

◆ decimal_expression()

wfl::decimal_expression::decimal_expression ( int  i,
int  f 

Definition at line 926 of file formula.cpp.

Member Function Documentation

◆ execute()

variant wfl::decimal_expression::execute ( const formula_callable ,
) const

Implements wfl::formula_expression.

Definition at line 939 of file formula.cpp.

References wfl::variant::DECIMAL_VARIANT.

◆ str()

std::string wfl::decimal_expression::str ( ) const

Implements wfl::formula_expression.

Definition at line 928 of file formula.cpp.

References s.

Member Data Documentation

◆ f_

int wfl::decimal_expression::f_

Definition at line 944 of file formula.cpp.

◆ i_

int wfl::decimal_expression::i_

Definition at line 944 of file formula.cpp.

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