Luwra
Minimal-overhead Lua wrapper for C++
Public Member Functions | Public Attributes | List of all members
luwra::Reference Struct Reference

Reference cell which contains a Lua value More...

Public Member Functions

 Reference (State *state, int indexOrRef=-1, bool isIndex=true)
 Copy the value at the given index or reference into a new reference cell. The value will not be removed. More...
 

Public Attributes

const internal::SharedReferenceImpl impl
 

Detailed Description

Reference cell which contains a Lua value

Constructor & Destructor Documentation

§ Reference()

luwra::Reference::Reference ( State state,
int  indexOrRef = -1,
bool  isIndex = true 
)
inline

Copy the value at the given index or reference into a new reference cell. The value will not be removed.

Parameters
stateLua state
indexOrRefIndex or reference identifier
isIndexIs indexOrRef an index?

Member Data Documentation

§ impl

const internal::SharedReferenceImpl luwra::Reference::impl