The Battle for Wesnoth  1.15.1+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 35 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 247 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 260 of file lua_formula_bridge.cpp.

Referenced by lua_formula_bridge::intf_eval_formula().

◆ str()

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

Definition at line 252 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
private

Definition at line 36 of file lua_formula_bridge.hpp.


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