The Battle for Wesnoth  1.19.5+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 
)
inline

Definition at line 926 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 939 of file formula.cpp.

References wfl::variant::DECIMAL_VARIANT, f_, and i_.

◆ str()

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

Implements wfl::formula_expression.

Definition at line 928 of file formula.cpp.

References f_, i_, and s.

Member Data Documentation

◆ f_

int wfl::decimal_expression::f_
private

Definition at line 944 of file formula.cpp.

Referenced by execute(), and str().

◆ i_

int wfl::decimal_expression::i_
private

Definition at line 944 of file formula.cpp.

Referenced by execute(), and str().


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