The Battle for Wesnoth  1.15.0+dev
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
wfl::string_expression Class Reference
Inheritance diagram for wfl::string_expression:
Inheritance graph

Classes

struct  substitution
 

Public Member Functions

 string_expression (std::string str)
 
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 &variables, formula_debugger *fdb) const
 

Private Attributes

variant str_
 
std::vector< substitutionsubs_
 

Detailed Description

Definition at line 949 of file formula.cpp.

Constructor & Destructor Documentation

◆ string_expression()

wfl::string_expression::string_expression ( std::string  str)
inlineexplicit

Member Function Documentation

◆ execute()

variant wfl::string_expression::execute ( const formula_callable variables,
formula_debugger fdb 
) const
inlineprivatevirtual

◆ str()

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

Implements wfl::formula_expression.

Definition at line 1008 of file formula.cpp.

Member Data Documentation

◆ str_

variant wfl::string_expression::str_
private

Definition at line 1068 of file formula.cpp.

◆ subs_

std::vector<substitution> wfl::string_expression::subs_
private

Definition at line 1069 of file formula.cpp.


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