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

Public Member Functions

 map_expression (const std::vector< expression_ptr > &items)
 
virtual 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

std::vector< expression_ptritems_
 

Detailed Description

Definition at line 363 of file formula.cpp.

Constructor & Destructor Documentation

◆ map_expression()

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

Definition at line 366 of file formula.cpp.

Member Function Documentation

◆ execute()

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

Implements wfl::formula_expression.

Definition at line 390 of file formula.cpp.

References wfl::add_debug_info(), and i.

◆ str()

virtual std::string wfl::map_expression::str ( ) const
inlinevirtual

Implements wfl::formula_expression.

Definition at line 370 of file formula.cpp.

References i, and s.

Member Data Documentation

◆ items_

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

Definition at line 402 of file formula.cpp.


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