Etterna 0.74.4
|
A self-cleaning Lua reference. More...
#include <LuaReference.h>
Public Member Functions | |
LuaReference (const LuaReference &cpy) | |
LuaReference (LuaReference &&cpy) | |
auto | operator= (const LuaReference &cpy) -> LuaReference & |
LuaReference (Lua *L) | |
void | swap (LuaReference &other) |
void | SetFromStack (Lua *L) |
void | SetFromNil () |
auto | SetFromExpression (const std::string &sExpression) -> bool |
void | DeepCopy () |
Deep-copy tables, detaching this reference from any others. | |
virtual void | PushSelf (Lua *L) const |
auto | IsSet () const -> bool |
Determine if the reference is set. | |
auto | IsNil () const -> bool |
Determine if the reference is nil. | |
void | Unset () |
auto | GetLuaType () const -> int |
auto | GetIdentifier () -> int |
auto | Serialize () const -> std::string |
Static Public Member Functions | |
template<typename T > | |
static auto | Create (const T &val) -> LuaReference |
template<class T > | |
static auto | CreateFromPush (T &obj) -> LuaReference |
A self-cleaning Lua reference.
bool LuaReference::IsNil | ( | ) | const -> bool |
Determine if the reference is nil.
bool LuaReference::IsSet | ( | ) | const -> bool |
Determine if the reference is set.
SetFromNil() counts as being set.