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

Public Member Functions

 square_bracket_expression (expression_ptr left, expression_ptr key)
 
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

expression_ptr left_
 
expression_ptr key_
 

Detailed Description

Definition at line 668 of file formula.cpp.

Constructor & Destructor Documentation

◆ square_bracket_expression()

wfl::square_bracket_expression::square_bracket_expression ( expression_ptr  left,
expression_ptr  key 
)
inline

Definition at line 671 of file formula.cpp.

Member Function Documentation

◆ execute()

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

◆ str()

std::string wfl::square_bracket_expression::str ( ) const
inlinevirtual

Implements wfl::formula_expression.

Definition at line 675 of file formula.cpp.

References s.

Member Data Documentation

◆ key_

expression_ptr wfl::square_bracket_expression::key_
private

Definition at line 694 of file formula.cpp.

◆ left_

expression_ptr wfl::square_bracket_expression::left_
private

Definition at line 694 of file formula.cpp.


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