OpenMiner  0.0.1a
Voxel game engine
Public Member Functions | Private Attributes | List of all members
sol::stack_proxy_base Struct Reference

#include <sol.hpp>

Inheritance diagram for sol::stack_proxy_base:
sol::proxy_base< stack_proxy_base > sol::proxy_base_tag sol::stack_proxy

Public Member Functions

 stack_proxy_base ()
 
 stack_proxy_base (lua_State *L, int index)
 
template<typename T >
decltype(auto) get () const
 
template<typename T >
bool is () const
 
template<typename T >
decltype(auto) as () const
 
type get_type () const noexcept
 
int push () const
 
int push (lua_State *Ls) const
 
lua_State * lua_state () const
 
int stack_index () const
 
- Public Member Functions inherited from sol::proxy_base< stack_proxy_base >
 operator std::string () const
 
 operator T () const
 
 operator T& () const
 
lua_State * lua_state () const
 

Private Attributes

lua_State * L
 
int index
 

Constructor & Destructor Documentation

§ stack_proxy_base() [1/2]

sol::stack_proxy_base::stack_proxy_base ( )
inline
12111  : L(nullptr), index(0) {
12112  }
int index
Definition: sol.hpp:12107
lua_State * L
Definition: sol.hpp:12106

§ stack_proxy_base() [2/2]

sol::stack_proxy_base::stack_proxy_base ( lua_State *  L,
int  index 
)
inline
12114  : L(L), index(index) {
12115  }
int index
Definition: sol.hpp:12107
lua_State * L
Definition: sol.hpp:12106

Member Function Documentation

§ as()

template<typename T >
decltype(auto) sol::stack_proxy_base::as ( ) const
inline
12128  {
12129  return get<T>();
12130  }

§ get()

template<typename T >
decltype(auto) sol::stack_proxy_base::get ( ) const
inline
12118  {
12119  return stack::get<T>(L, stack_index());
12120  }
int stack_index() const
Definition: sol.hpp:12148
lua_State * L
Definition: sol.hpp:12106

§ get_type()

type sol::stack_proxy_base::get_type ( ) const
inlinenoexcept
12132  {
12133  return type_of(lua_state(), stack_index());
12134  }
lua_State * lua_state() const
Definition: sol.hpp:12145
int stack_index() const
Definition: sol.hpp:12148
type type_of(lua_State *L, int index)
Definition: sol.hpp:5358

§ is()

template<typename T >
bool sol::stack_proxy_base::is ( ) const
inline
12123  {
12124  return stack::check<T>(L, stack_index());
12125  }
int stack_index() const
Definition: sol.hpp:12148
lua_State * L
Definition: sol.hpp:12106

§ lua_state()

lua_State* sol::stack_proxy_base::lua_state ( ) const
inline
12145  {
12146  return L;
12147  }
lua_State * L
Definition: sol.hpp:12106

§ push() [1/2]

int sol::stack_proxy_base::push ( ) const
inline
12136  {
12137  return push(L);
12138  }
int push() const
Definition: sol.hpp:12136
lua_State * L
Definition: sol.hpp:12106

§ push() [2/2]

int sol::stack_proxy_base::push ( lua_State *  Ls) const
inline
12140  {
12141  lua_pushvalue(Ls, index);
12142  return 1;
12143  }
int index
Definition: sol.hpp:12107

§ stack_index()

int sol::stack_proxy_base::stack_index ( ) const
inline
12148  {
12149  return index;
12150  }
int index
Definition: sol.hpp:12107

Member Data Documentation

§ index

int sol::stack_proxy_base::index
private

§ L

lua_State* sol::stack_proxy_base::L
private

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