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

Public Member Functions

 list_expression (const std::vector< expression_ptr > &items)
 
- 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
 
std::string str () const
 

Private Attributes

std::vector< expression_ptritems_
 

Detailed Description

Definition at line 323 of file formula.cpp.

Constructor & Destructor Documentation

◆ list_expression()

wfl::list_expression::list_expression ( const std::vector< expression_ptr > &  items)
inlineexplicit

Definition at line 326 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 331 of file formula.cpp.

References wfl::add_debug_info(), i, and items_.

◆ str()

std::string wfl::list_expression::str ( ) const
inlineprivatevirtual

Implements wfl::formula_expression.

Definition at line 344 of file formula.cpp.

References items_, and s.

Member Data Documentation

◆ items_

std::vector<expression_ptr> wfl::list_expression::items_
private

Definition at line 342 of file formula.cpp.

Referenced by execute(), and str().


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