71 template <
typename RT>
80 template <
typename RT,
typename P0>
91 template <
typename RT,
typename P0,
typename P1>
92 RT
call(
const P0& arg1,
const P1& arg2);
104 template <
typename RT,
typename P0,
typename P1,
typename P2>
105 RT
call(
const P0& arg1,
const P1& arg2,
const P2& arg3);
119 template <
typename RT,
typename P0,
typename P1,
typename P2,
typename P3>
120 RT
call(
const P0& arg1,
const P1& arg2,
const P2& arg3,
const P3& arg4);
136 template <
typename RT,
typename P0,
typename P1,
typename P2,
typename P3,
typename P4>
137 RT
call(
const P0& arg1,
const P1& arg2,
const P2& arg3,
const P3& arg4,
const P4& arg5);
156#include "vreUtil/luaFunction.inl"
virtual ~DtLuaFunction() override
Virtual destructor.
DtLuaFunction()
Default constructor.
RT call(const P0 &arg1)
Calls the Lua function with one parameter.
RT call(const P0 &arg1, const P1 &arg2, const P2 &arg3)
Calls the Lua function with three parameters.
DtLuaFunction(lua_State &state, int index)
Constructor from Lua stack value.
DtLuaFunction(const DtLuaFunction &funcObj)
Copy constructor.
RT call(const P0 &arg1, const P1 &arg2, const P2 &arg3, const P3 &arg4)
Calls the Lua function with four parameters.
RT call()
Calls the Lua function with no parameters.
virtual void preFunction()
Prepares the stack for a function call.
int myErrorIndex
Stack index for the error handler function.
Definition luaFunction.h:152
DtLuaFunction & operator=(const DtLuaFunction &func)
Assignment operator.
RT call(const P0 &arg1, const P1 &arg2, const P2 &arg3, const P3 &arg4, const P4 &arg5)
Calls the Lua function with five parameters.
DtLuaFunction(const DtLuaObject &funcObj)
Construct from a Lua object.
virtual void postFunction(int argc)
Cleans up after a function call.
DtLuaFunction & operator=(const DtLuaObject &funcObj)
Assignment operator from Lua object.
RT call(const P0 &arg1, const P1 &arg2)
Calls the Lua function with two parameters.
virtual lua_State * state()
Gets the Lua state associated with this object.
DtLuaObject()
Default constructor.
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Provides access to Lua tables and objects with C++ wrappers.
Include export definitions for this library.
Definition glsVreMessageUtil.h:49