nngn
Loading...
Searching...
No Matches
nngn::lua::function_view Struct Reference

Non-owning reference to a function on the stack. More...

#include <function.h>

Inheritance diagram for nngn::lua::function_view:
Collaboration diagram for nngn::lua::function_view:

Public Member Functions

 value_view ()=default
 
 value_view (const value_view &)=default
 
 value_view (value_view &&) noexcept=default
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
- Public Member Functions inherited from nngn::lua::value_view
 value_view ()=default
 
 value_view (const value_view &)=default
 
value_viewoperator= (const value_view &)=default
 
 value_view (value_view &&) noexcept=default
 
value_viewoperator= (value_view &&) noexcept=default
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 ~value_view (void)=default
 
state_view state (void) const
 
state_view release (void)
 
int index (void) const
 Lua stack index.
 
type get_type (void) const
 Type of value at index i.
 
bool is_nil (void) const
 
auto to_string (void) const
 
void get (lua_State *L, int i)
 
template<typename T >
requires (detail::can_get<T>)
T get (void) const
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
template<typename T >
 operator T (void) const
 
- Public Member Functions inherited from nngn::lua::detail::function_base< function_view >
void operator() (auto &&...args) const
 Pushes each argument onto the stack and calls the function.
 

Detailed Description

Non-owning reference to a function on the stack.

See also
nngn::lua::detail::function_base

Member Function Documentation

◆ value_view() [1/5]

nngn::lua::value_view::value_view ( )
default

◆ value_view() [2/5]

nngn::lua::value_view::value_view ( const value_view & )
default

◆ value_view() [3/5]

nngn::lua::value_view::value_view ( lua_State * L,
int i )
inline

◆ value_view() [4/5]

nngn::lua::value_view::value_view ( state_view l,
int i )
inline

◆ value_view() [5/5]

nngn::lua::value_view::value_view ( value_view && )
defaultnoexcept

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