Public Member Functions | Protected Member Functions | Private Types | Friends | List of all members
sol::basic_metatable< base_type > Class Template Reference

#include <forward.hpp>

Public Member Functions

 basic_metatable () noexcept=default
 
 basic_metatable (basic_metatable &&)=default
 
 basic_metatable (const basic_metatable &)=default
 
 basic_metatable (const stack_reference &r)
 
 basic_metatable (lua_nil_t r) noexcept
 
 basic_metatable (lua_State *L, int index=-1)
 
 basic_metatable (lua_State *L, ref_index index)
 
template<typename T , meta::enable_any< is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
 basic_metatable (lua_State *L, T &&r)
 
 basic_metatable (stack_reference &&r)
 
template<typename T , meta::enable< meta::neg< meta::any_same< meta::unqualified_t< T >, basic_metatable >>, meta::neg< std::is_same< base_type, stack_reference >>, meta::neg< std::is_same< lua_nil_t, meta::unqualified_t< T >>>, is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
 basic_metatable (T &&r) noexcept
 
basic_metatableoperator= (basic_metatable &&)=default
 
basic_metatableoperator= (const basic_metatable &)=default
 
template<typename Key , typename Value >
basic_metatable< base_type > & set (Key &&key, Value &&value)
 
template<typename Sig , typename Key , typename... Args>
basic_metatableset_function (Key &&key, Args &&... args)
 
template<typename Key , typename... Args>
basic_metatableset_function (Key &&key, Args &&... args)
 
void unregister ()
 

Protected Member Functions

 basic_metatable (detail::no_safety_tag, lua_nil_t n)
 
 basic_metatable (detail::no_safety_tag, lua_State *L, int index)
 
 basic_metatable (detail::no_safety_tag, lua_State *L, ref_index index)
 
template<typename T , meta::enable< is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
 basic_metatable (detail::no_safety_tag, lua_State *L, T &&r) noexcept
 
template<typename T , meta::enable< meta::neg< meta::any_same< meta::unqualified_t< T >, basic_metatable >>, meta::neg< std::is_same< base_type, stack_reference >>, meta::neg< std::is_same< lua_nil_t, meta::unqualified_t< T >>>, is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
 basic_metatable (detail::no_safety_tag, T &&r) noexcept
 
template<typename R , typename... Args, typename Fx , typename Key , typename = std::invoke_result_t<Fx, Args...>>
void set_fx (types< R(Args...)>, Key &&key, Fx &&fx)
 
template<typename Fx , typename Key , meta::enable< meta::is_specialization_of< meta::unqualified_t< Fx >, overload_set >> = meta::enabler>
void set_fx (types<>, Key &&key, Fx &&fx)
 
template<typename Fx , typename Key , typename... Args, meta::disable< meta::is_specialization_of< meta::unqualified_t< Fx >, overload_set >> = meta::enabler>
void set_fx (types<>, Key &&key, Fx &&fx, Args &&... args)
 
template<typename... Sig, typename... Args, typename Key >
void set_resolved_function (Key &&key, Args &&... args)
 

Private Types

typedef basic_table< base_type > base_t
 

Friends

class state
 
class state_view
 

Detailed Description

template<typename base_type>
class sol::basic_metatable< base_type >

Definition at line 1146 of file forward.hpp.

Member Typedef Documentation

◆ base_t

template<typename base_type >
typedef basic_table<base_type> sol::basic_metatable< base_type >::base_t
private

Definition at line 26134 of file sol.hpp.

Constructor & Destructor Documentation

◆ basic_metatable() [1/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( detail::no_safety_tag  ,
lua_nil_t  n 
)
inlineprotected

Definition at line 26139 of file sol.hpp.

◆ basic_metatable() [2/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( detail::no_safety_tag  ,
lua_State L,
int  index 
)
inlineprotected

Definition at line 26141 of file sol.hpp.

◆ basic_metatable() [3/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( detail::no_safety_tag  ,
lua_State L,
ref_index  index 
)
inlineprotected

Definition at line 26143 of file sol.hpp.

◆ basic_metatable() [4/15]

template<typename base_type >
template<typename T , meta::enable< meta::neg< meta::any_same< meta::unqualified_t< T >, basic_metatable >>, meta::neg< std::is_same< base_type, stack_reference >>, meta::neg< std::is_same< lua_nil_t, meta::unqualified_t< T >>>, is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
sol::basic_metatable< base_type >::basic_metatable ( detail::no_safety_tag  ,
T &&  r 
)
inlineprotectednoexcept

Definition at line 26148 of file sol.hpp.

◆ basic_metatable() [5/15]

template<typename base_type >
template<typename T , meta::enable< is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
sol::basic_metatable< base_type >::basic_metatable ( detail::no_safety_tag  ,
lua_State L,
T &&  r 
)
inlineprotectednoexcept

Definition at line 26151 of file sol.hpp.

◆ basic_metatable() [6/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( )
defaultnoexcept

◆ basic_metatable() [7/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( const basic_metatable< base_type > &  )
default

◆ basic_metatable() [8/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( basic_metatable< base_type > &&  )
default

◆ basic_metatable() [9/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( const stack_reference r)
inline

Definition at line 26183 of file sol.hpp.

◆ basic_metatable() [10/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( stack_reference &&  r)
inline

Definition at line 26185 of file sol.hpp.

◆ basic_metatable() [11/15]

template<typename base_type >
template<typename T , meta::enable_any< is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
sol::basic_metatable< base_type >::basic_metatable ( lua_State L,
T &&  r 
)
inline

Definition at line 26188 of file sol.hpp.

◆ basic_metatable() [12/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( lua_State L,
int  index = -1 
)
inline

Definition at line 26195 of file sol.hpp.

◆ basic_metatable() [13/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( lua_State L,
ref_index  index 
)
inline

Definition at line 26201 of file sol.hpp.

◆ basic_metatable() [14/15]

template<typename base_type >
template<typename T , meta::enable< meta::neg< meta::any_same< meta::unqualified_t< T >, basic_metatable >>, meta::neg< std::is_same< base_type, stack_reference >>, meta::neg< std::is_same< lua_nil_t, meta::unqualified_t< T >>>, is_lua_reference< meta::unqualified_t< T >>> = meta::enabler>
sol::basic_metatable< base_type >::basic_metatable ( T &&  r)
inlinenoexcept

Definition at line 26211 of file sol.hpp.

◆ basic_metatable() [15/15]

template<typename base_type >
sol::basic_metatable< base_type >::basic_metatable ( lua_nil_t  r)
inlinenoexcept

Definition at line 26220 of file sol.hpp.

Member Function Documentation

◆ operator=() [1/2]

template<typename base_type >
basic_metatable& sol::basic_metatable< base_type >::operator= ( basic_metatable< base_type > &&  )
default

◆ operator=() [2/2]

template<typename base_type >
basic_metatable& sol::basic_metatable< base_type >::operator= ( const basic_metatable< base_type > &  )
default

◆ set()

template<typename base_type >
template<typename Key , typename Value >
basic_metatable< base_type > & sol::basic_metatable< base_type >::set ( Key &&  key,
Value &&  value 
)

Definition at line 26531 of file sol.hpp.

◆ set_function() [1/2]

template<typename base_type >
template<typename Sig , typename Key , typename... Args>
basic_metatable& sol::basic_metatable< base_type >::set_function ( Key &&  key,
Args &&...  args 
)
inline

Definition at line 26227 of file sol.hpp.

◆ set_function() [2/2]

template<typename base_type >
template<typename Key , typename... Args>
basic_metatable& sol::basic_metatable< base_type >::set_function ( Key &&  key,
Args &&...  args 
)
inline

Definition at line 26233 of file sol.hpp.

◆ set_fx() [1/3]

template<typename base_type >
template<typename R , typename... Args, typename Fx , typename Key , typename = std::invoke_result_t<Fx, Args...>>
void sol::basic_metatable< base_type >::set_fx ( types< R(Args...)>  ,
Key &&  key,
Fx &&  fx 
)
inlineprotected

Definition at line 26155 of file sol.hpp.

◆ set_fx() [2/3]

template<typename base_type >
template<typename Fx , typename Key , meta::enable< meta::is_specialization_of< meta::unqualified_t< Fx >, overload_set >> = meta::enabler>
void sol::basic_metatable< base_type >::set_fx ( types<>  ,
Key &&  key,
Fx &&  fx 
)
inlineprotected

Definition at line 26160 of file sol.hpp.

◆ set_fx() [3/3]

template<typename base_type >
template<typename Fx , typename Key , typename... Args, meta::disable< meta::is_specialization_of< meta::unqualified_t< Fx >, overload_set >> = meta::enabler>
void sol::basic_metatable< base_type >::set_fx ( types<>  ,
Key &&  key,
Fx &&  fx,
Args &&...  args 
)
inlineprotected

Definition at line 26166 of file sol.hpp.

◆ set_resolved_function()

template<typename base_type >
template<typename... Sig, typename... Args, typename Key >
void sol::basic_metatable< base_type >::set_resolved_function ( Key &&  key,
Args &&...  args 
)
inlineprotected

Definition at line 26171 of file sol.hpp.

◆ unregister()

template<typename base_type >
void sol::basic_metatable< base_type >::unregister ( )
inline

Definition at line 26238 of file sol.hpp.

Friends And Related Function Documentation

◆ state

template<typename base_type >
friend class state
friend

Definition at line 26135 of file sol.hpp.

◆ state_view

template<typename base_type >
friend class state_view
friend

Definition at line 26136 of file sol.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52