Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
LuaFunction< N, Return, Args > Class Template Reference
Inheritance diagram for LuaFunction< N, Return, Args >:
[legend]
Collaboration diagram for LuaFunction< N, Return, Args >:
[legend]

Public Member Functions

 LuaFunction (lua_State *&state, const std::string &name, Return(*function)(Args...))
 
 m_name (name)
 
 Lua::pushcclosure (state,&Luaw::_lua_dispatcher, 1)
 
 Lua::setglobal (state, name.c_str())
 
int apply (lua_State *state)
 
void operator= (LuaFunction &)=delete
 

Public Attributes

m_state state
 

Protected Attributes

std::function< Return(Args...)> m_function
 
std::string m_name
 
lua_State ** m_state
 

Member Data Documentation

template<int N, typename Return , typename... Args>
m_state LuaFunction< N, Return, Args >::state
Initial value:
{
Lua::pushlightuserdata(state, (void *)static_cast<BaseLuaFunction *>(this))

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