Luwra
Minimal-overhead Lua wrapper for C++
|
A callable Lua value without a return value. More...
#include <function.hpp>
Public Member Functions | |
template<typename OtherRet > | |
Function (const Function< OtherRet > &other) | |
Convert from an existing Function. | |
Function (const Reference &ref) | |
Create from reference. | |
Function (State *state, int index) | |
Create from callable on the stack. | |
void | operator() () const |
Invoke the callable without arguments. | |
template<typename... Args> | |
void | operator() (Args &&... args) const |
Invoke the callable with arguments. | |
Public Attributes | |
Reference | ref |
Internal reference to the Lua value. | |
A callable Lua value without a return value.
|
inline |
Create from reference.
|
inline |
Create from callable on the stack.
|
inline |
Convert from an existing Function.
|
inline |
Invoke the callable without arguments.
|
inline |
Invoke the callable with arguments.
Reference luwra::Function< void >::ref |
Internal reference to the Lua value.