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

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

Constructor & Destructor Documentation

◆ map_expression()

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

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

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

◆ str()

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

Implements wfl::formula_expression.

Definition at line 368 of file formula.cpp.

References i, items_, and s.

Member Data Documentation

◆ items_

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

Definition at line 400 of file formula.cpp.

Referenced by execute(), and str().


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