The Battle for Wesnoth  1.19.0+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 322 of file formula.cpp.

Constructor & Destructor Documentation

◆ list_expression()

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

Definition at line 325 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 330 of file formula.cpp.

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

◆ str()

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

Implements wfl::formula_expression.

Definition at line 343 of file formula.cpp.

References a, items_, and s.

Member Data Documentation

◆ items_

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

Definition at line 341 of file formula.cpp.

Referenced by execute(), and str().

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