The Battle for Wesnoth  1.15.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:
Inheritance graph

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

Constructor & Destructor Documentation

◆ list_expression()

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

Definition at line 327 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 332 of file formula.cpp.

References wfl::add_debug_info(), and i.

◆ str()

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

Implements wfl::formula_expression.

Definition at line 345 of file formula.cpp.

References a, and s.

Member Data Documentation

◆ items_

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

Definition at line 343 of file formula.cpp.


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