Lua_icxx
1.02 (Aug 2011)
|
Represent a reference to a Lua object that is a User Data Type (a class). More...
#include <LuaFuncRef.h>
Public Member Functions | |
LuaClassObjRef (const std::string &id="nil") | |
Reference to nil. | |
LuaBoundMethRef | getBoundMethod (const std::string &) const |
Get one of the methods of the object referenced. | |
LuaClassObjRef (const LuaTempResult &res) | |
Create from object on Lua stack. | |
LuaClassObjRef (const LuaTempResult::Item &item) | |
Create from object on Lua stack. | |
LuaClassObjRef (lua_State *lua, int stackPos) | |
Create from object on Lua stack. | |
DECL_FN_CALLS (callMethod) | |
Call given method on the object. Automatically provides the Lua object as first arg to in the call. |
Represent a reference to a Lua object that is a User Data Type (a class).
It extends LuaObjRef with callMethod(...) which takes a method name, assumed to be a function that takes the object as first argument. The callMethod() automatically provide the object as first argument to the function. As well, it is possible to create a LuaBoundMethRef from it, given a member function name.
Definition at line 117 of file LuaFuncRef.h.