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

Public Member Functions

 where_expression (expression_ptr body, expr_table_ptr clauses)
 
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

expression_ptr body_
 
expr_table_ptr clauses_
 

Detailed Description

Definition at line 853 of file formula.cpp.

Constructor & Destructor Documentation

◆ where_expression()

wfl::where_expression::where_expression ( expression_ptr  body,
expr_table_ptr  clauses 
)
inline

Definition at line 856 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 876 of file formula.cpp.

References wfl::add_debug_info(), body_, and clauses_.

◆ str()

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

Implements wfl::formula_expression.

Definition at line 860 of file formula.cpp.

References body_, clauses_, and s.

Member Data Documentation

◆ body_

expression_ptr wfl::where_expression::body_
private

Definition at line 873 of file formula.cpp.

Referenced by execute(), and str().

◆ clauses_

expr_table_ptr wfl::where_expression::clauses_
private

Definition at line 874 of file formula.cpp.

Referenced by execute(), and str().


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