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

Public Member Functions

 identifier_expression (const std::string &id)
 
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 *) const
 

Private Attributes

std::string id_
 

Detailed Description

Definition at line 884 of file formula.cpp.

Constructor & Destructor Documentation

◆ identifier_expression()

wfl::identifier_expression::identifier_expression ( const std::string &  id)
inlineexplicit

Definition at line 887 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 895 of file formula.cpp.

References id_, and wfl::formula_callable::query_value().

◆ str()

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

Implements wfl::formula_expression.

Definition at line 889 of file formula.cpp.

References id_.

Member Data Documentation

◆ id_

std::string wfl::identifier_expression::id_
private

Definition at line 900 of file formula.cpp.

Referenced by execute(), and str().


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