ug4
ug::LuaUserNumberNumberFunction Class Reference

this class maps a scalar value an output scalar value using a lua callback More...

#include <lua_user_data.h>

Public Member Functions

 LuaUserNumberNumberFunction ()
 
number operator() (int numArgs,...) const
 
void set_lua_callback (const char *luaCallback)
 

Protected Attributes

std::string m_callbackName
 
int m_callbackRef
 
lua_Statem_L
 

Detailed Description

this class maps a scalar value an output scalar value using a lua callback

Constructor & Destructor Documentation

◆ LuaUserNumberNumberFunction()

ug::LuaUserNumberNumberFunction::LuaUserNumberNumberFunction ( )

Member Function Documentation

◆ operator()()

number ug::LuaUserNumberNumberFunction::operator() ( int  numArgs,
  ... 
) const

◆ set_lua_callback()

void ug::LuaUserNumberNumberFunction::set_lua_callback ( const char *  luaCallback)

References UG_THROW.

Member Data Documentation

◆ m_callbackName

std::string ug::LuaUserNumberNumberFunction::m_callbackName
protected

◆ m_callbackRef

int ug::LuaUserNumberNumberFunction::m_callbackRef
protected

◆ m_L

lua_State* ug::LuaUserNumberNumberFunction::m_L
protected

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