Orxonox  0.0.5 Codename: Arcturus
Static Public Member Functions | List of all members
LuaTBTypedStack::function< Ret(Args...)> Struct Template Reference

Needed to get a lambda to call a lua function. More...

Inheritance diagram for LuaTBTypedStack::function< Ret(Args...)>:

Static Public Member Functions

static std::function< void(Args...)> value (lua_State *lua, int *ref)
 Get a lambda to call a lua function later. More...
 

Detailed Description

template<typename Ret, typename... Args>
struct LuaTBTypedStack::function< Ret(Args...)>

Needed to get a lambda to call a lua function.

We need this class, becasue we need to specify the signature of the function before.

Member Function Documentation

template<typename Ret , typename... Args>
static std::function<void (Args...)> LuaTBTypedStack::function< Ret(Args...)>::value ( lua_State *  lua,
int *  ref 
)
inlinestatic

Get a lambda to call a lua function later.

Parameters
luaPointer to the lua state
refPointer to the lua registry reference where the function is stored
Returns
Lambda that will call the function specified with ref

The documentation for this struct was generated from the following file: