|
Luwra
Minimal-overhead Lua wrapper for C++
|
A callable Lua 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 using a Reference. | |
| Function (State *state, int index) | |
Create using a Callable on the stack. | |
| Ret | operator() () const |
| Invoke the callable without arguments. | |
| template<typename... Args> | |
| Ret | operator() (Args &&... args) const |
| Invoke the callable with arguments. | |
Public Attributes | |
| Reference | ref |
| Internal reference to the Lua value. | |
A callable Lua value.
| Ret | Expected return type |
|
inline |
Create using a Reference.
|
inline |
Create using a 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< Ret >::ref |
Internal reference to the Lua value.