The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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, game_logic::function_symbol_table *functions=nullptr)
 
std::string str () const
 
variant evaluate (const game_logic::formula_callable &variables, game_logic::formula_debugger *fdb=nullptr) const
 

Private Attributes

boost::shared_ptr
< game_logic::formula
formula_ptr
 

Detailed Description

Definition at line 36 of file lua_formula_bridge.hpp.

Constructor & Destructor Documentation

lua_formula_bridge::fwrapper::fwrapper ( const std::string code,
game_logic::function_symbol_table functions = nullptr 
)

Definition at line 245 of file lua_formula_bridge.cpp.

Member Function Documentation

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

Definition at line 258 of file lua_formula_bridge.cpp.

Referenced by lua_formula_bridge::intf_eval_formula().

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

Definition at line 250 of file lua_formula_bridge.cpp.

Referenced by impl_formula_tostring().

Member Data Documentation

boost::shared_ptr<game_logic::formula> lua_formula_bridge::fwrapper::formula_ptr
private

Definition at line 37 of file lua_formula_bridge.hpp.


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