nngn
Loading...
Searching...
No Matches
nngn::lua::stack_get< T > Struct Template Reference

Reads a value convertible to lua_Integer. More...

#include <get.h>

Static Public Member Functions

static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 

Detailed Description

template<detail::integer T>
requires (detail::can_get<std::underlying_type_t<T>>)
struct nngn::lua::stack_get< T >

Reads a value convertible to lua_Integer.

Reads one of the libraries native stack types (e.g.

Reads an enum value if its underlying integral type can be read.

Reads a value convertible to lua_Number.

Explicit casting is required for types whose values cannot be fully represented by a lua_Integer.

See also
nngn::lua::integer

Same rules as the lua_Integer specialization.

See also
nngn::lua::number

table).

Member Function Documentation

◆ get() [1/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [2/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [3/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [4/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [5/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [6/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [7/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

◆ get() [8/8]

template<detail::integer T>
static T nngn::lua::stack_get< T >::get ( lua_State *  L,
int  i 
)
inlinestatic

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