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

Owning reference to a function on the stack. More...

#include <function.h>

Inheritance diagram for nngn::lua::function_value:
Collaboration diagram for nngn::lua::function_value:

Public Member Functions

 ~function_value (void)=default
 
 ~function_value (void)=default
 
 value (value_view v)
 
 value (value &&rhs) noexcept
 
 value (value_view v)
 
 value (value &&rhs) noexcept
 
 value (value_view v)
 
 value (value &&rhs) noexcept
 
 value (value_view v)
 
 value (value &&rhs) noexcept
 
- Public Member Functions inherited from nngn::lua::value
 value (value_view v)
 
 value (value &&rhs) noexcept
 
valueoperator= (value &&rhs) noexcept
 
 ~value (void)
 
value_view release (void)
 
template<typename R = value>
push (void) const
 
value remove (void)
 
 value (value_view v)
 
 value (value &&rhs) noexcept
 
valueoperator= (value &&rhs) noexcept
 
 ~value (void)
 
value_view release (void)
 
template<typename R = value>
push (void) const
 
value remove (void)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
- Public Member Functions inherited from nngn::lua::value_view
 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
 
 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_value >
void operator() (auto &&...args) const
 Pushes each argument onto the stack and calls the function.
 
void operator() (auto &&...args) const
 Pushes each argument onto the stack and calls the function.
 

Detailed Description

Owning reference to a function on the stack.

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

Constructor & Destructor Documentation

◆ ~function_value() [1/2]

nngn::lua::function_value::~function_value ( void  )
default

◆ ~function_value() [2/2]

nngn::lua::function_value::~function_value ( void  )
default

Member Function Documentation

◆ value() [1/8]

nngn::lua::value::value ( value &&  rhs)
inlinenoexcept

◆ value() [2/8]

nngn::lua::value::value ( value &&  rhs)
inlinenoexcept

◆ value() [3/8]

nngn::lua::value::value ( value &&  rhs)
inlinenoexcept

◆ value() [4/8]

nngn::lua::value::value ( value &&  rhs)
inlinenoexcept

◆ value() [5/8]

nngn::lua::value::value ( value_view  v)
inline

◆ value() [6/8]

nngn::lua::value::value ( value_view  v)
inline

◆ value() [7/8]

nngn::lua::value::value ( value_view  v)
inline

◆ value() [8/8]

nngn::lua::value::value ( value_view  v)
inline

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