The Battle for Wesnoth  1.19.1+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:

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 947 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 1006 of file formula.cpp.

References wfl::variant::as_string(), str_, and subs_.

Referenced by execute(), and string_expression().

Member Data Documentation

◆ str_

variant wfl::string_expression::str_
private

Definition at line 1066 of file formula.cpp.

Referenced by execute(), str(), and string_expression().

◆ subs_

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

Definition at line 1067 of file formula.cpp.

Referenced by execute(), str(), and string_expression().


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