Static Public Member Functions | List of all members
luwra::Value< T > Struct Template Reference

Inherited by luwra::Value< const T >, and luwra::Value< volatile T >.

Static Public Member Functions

static T read (State *state, int index)
 
static size_t push (State *state, const T &value)
 

Detailed Description

template<typename T>
struct luwra::Value< T >

User type

Member Function Documentation

template<typename T >
static size_t luwra::Value< T >::push ( State state,
const T &  value 
)
inlinestatic

Copy a user type value onto the stack.

Parameters
stateLua state
valueValue you want to push
Returns
Number of values pushed
template<typename T >
static T luwra::Value< T >::read ( State state,
int  index 
)
inlinestatic

Copy a user type value from the stack.

Parameters
stateLua state
indexPosition of the value