Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
LuaReference Class Reference

A self-cleaning Lua reference. More...

#include <LuaReference.h>

Inheritance diagram for LuaReference:
Inheritance graph
[legend]

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
 

Detailed Description

A self-cleaning Lua reference.

Member Function Documentation

◆ IsNil()

bool LuaReference::IsNil ( ) const -> bool

Determine if the reference is nil.

Returns
true if it's nil.

◆ IsSet()

bool LuaReference::IsSet ( ) const -> bool

Determine if the reference is set.

SetFromNil() counts as being set.

Returns
true if it's set.

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