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

Pushes a value convertible to lua_Integer. More...

#include <push.h>

Static Public Member Functions

static int push (lua_State *L, lua_Integer i)
 
static int push (lua_State *L, lua_Number n)
 
static int push (lua_State *L, T t)
 
static int push (lua_State *L, T f)
 
static int push (lua_State *L, const T &)
 
static int push (lua_State *L, const T &t)
 
static int push (lua_State *L, T t)
 
static int push (lua_State *L, lua_Integer i)
 
static int push (lua_State *L, lua_Number n)
 
static int push (lua_State *L, T t)
 
static int push (lua_State *L, T f)
 
static int push (lua_State *L, const T &)
 
static int push (lua_State *L, const T &t)
 
static int push (lua_State *L, T t)
 

Detailed Description

template<detail::integer T>
requires (detail::can_push<std::underlying_type_t<T>>)
struct nngn::lua::stack_push< T >

Pushes a value convertible to lua_Integer.

Pushes a user type as a full user data value.

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

Pushes the call operator of a stateless lambda.

Convenience specialization for the lua_CFunction overload.

Pushes an enum value if its underlying integral type can be pushed.

Pushes 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

Pushes callables which can be converted to a Lua function.

table).

A copy of the value is pushed.

See also
NNGN_LUA_DECLARE_USER_TYPE A type must be explicitly declared as a user type for this overload to be used.

Member Function Documentation

◆ push() [1/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
const T  
)
inlinestatic
Here is the call graph for this function:

◆ push() [2/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
const T  
)
inlinestatic
Here is the call graph for this function:

◆ push() [3/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
const T t 
)
inlinestatic

◆ push() [4/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
const T t 
)
inlinestatic

◆ push() [5/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
lua_Integer  i 
)
inlinestatic

◆ push() [6/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
lua_Integer  i 
)
inlinestatic

◆ push() [7/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
lua_Number  n 
)
inlinestatic

◆ push() [8/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
lua_Number  n 
)
inlinestatic

◆ push() [9/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  f 
)
inlinestatic
Here is the call graph for this function:

◆ push() [10/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  f 
)
inlinestatic
Here is the call graph for this function:

◆ push() [11/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  t 
)
inlinestatic
Here is the call graph for this function:

◆ push() [12/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  t 
)
inlinestatic
Here is the call graph for this function:

◆ push() [13/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  t 
)
inlinestatic
Here is the call graph for this function:

◆ push() [14/14]

template<detail::integer T>
static int nngn::lua::stack_push< T >::push ( lua_State *  L,
T  t 
)
inlinestatic
Here is the call graph for this function:

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