The Battle for Wesnoth  1.19.2+dev
Public Member Functions | Private Attributes | List of all members
lua_formula_bridge::fwrapper Class Reference

#include <lua_formula_bridge.hpp>

Public Member Functions

 fwrapper (const std::string &code, wfl::function_symbol_table *functions=nullptr)
std::string str () const
wfl::variant evaluate (const wfl::formula_callable &variables, wfl::formula_debugger *fdb=nullptr) const

Private Attributes

std::shared_ptr< wfl::formulaformula_ptr

Detailed Description

Definition at line 37 of file lua_formula_bridge.hpp.

Constructor & Destructor Documentation

◆ fwrapper()

lua_formula_bridge::fwrapper::fwrapper ( const std::string &  code,
wfl::function_symbol_table functions = nullptr 

Definition at line 280 of file lua_formula_bridge.cpp.

Member Function Documentation

◆ evaluate()

variant lua_formula_bridge::fwrapper::evaluate ( const wfl::formula_callable variables,
wfl::formula_debugger fdb = nullptr 
) const

Definition at line 293 of file lua_formula_bridge.cpp.

◆ str()

std::string lua_formula_bridge::fwrapper::str ( ) const

Definition at line 285 of file lua_formula_bridge.cpp.

Referenced by impl_formula_tostring().

Member Data Documentation

◆ formula_ptr

std::shared_ptr<wfl::formula> lua_formula_bridge::fwrapper::formula_ptr

Definition at line 38 of file lua_formula_bridge.hpp.

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