ug4
|
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_State * | m_L |
this class maps a scalar value an output scalar value using a lua callback
ug::LuaUserNumberNumberFunction::LuaUserNumberNumberFunction | ( | ) |
References ug::script::GetDefaultLuaState().
number ug::LuaUserNumberNumberFunction::operator() | ( | int | numArgs, |
... | |||
) | const |
References ug::ReturnValueToNumber(), and UG_THROW.
void ug::LuaUserNumberNumberFunction::set_lua_callback | ( | const char * | luaCallback | ) |
References UG_THROW.
|
protected |
|
protected |
|
protected |