OpenMiner  0.0.1a
Voxel game engine
Public Types | Static Public Member Functions | Private Types | List of all members
sol::container_detail::container_traits_default< X, typename > Struct Template Reference

#include <sol.hpp>

Public Types

typedef lua_nil_t iterator
 
typedef lua_nil_t value_type
 

Static Public Member Functions

static int at (lua_State *L)
 
static int get (lua_State *L)
 
static int index_get (lua_State *L)
 
static int set (lua_State *L)
 
static int index_set (lua_State *L)
 
static int add (lua_State *L)
 
static int insert (lua_State *L)
 
static int find (lua_State *L)
 
static int size (lua_State *L)
 
static int clear (lua_State *L)
 
static int empty (lua_State *L)
 
static int erase (lua_State *L)
 
static int next (lua_State *L)
 
static int pairs (lua_State *L)
 
static int ipairs (lua_State *L)
 
static iterator begin (lua_State *L, T &)
 
static iterator end (lua_State *L, T &)
 

Private Types

typedef std::remove_pointer_t< meta::unwrap_unqualified_t< X > > T
 

Member Typedef Documentation

§ iterator

template<typename X, typename = void>
typedef lua_nil_t sol::container_detail::container_traits_default< X, typename >::iterator

§ T

template<typename X, typename = void>
typedef std::remove_pointer_t<meta::unwrap_unqualified_t<X> > sol::container_detail::container_traits_default< X, typename >::T
private

§ value_type

template<typename X, typename = void>
typedef lua_nil_t sol::container_detail::container_traits_default< X, typename >::value_type

Member Function Documentation

§ add()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::add ( lua_State *  L)
inlinestatic
16724  {
16725  return luaL_error(L, "sol: cannot call 'add' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16726  }

§ at()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::at ( lua_State *  L)
inlinestatic
16704  {
16705  return luaL_error(L, "sol: cannot call 'at(index)' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16706  }

§ begin()

template<typename X, typename = void>
static iterator sol::container_detail::container_traits_default< X, typename >::begin ( lua_State *  L,
T  
)
inlinestatic
16764  {
16765  luaL_error(L, "sol: cannot call 'being' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16766  return lua_nil;
16767  }
const lua_nil_t lua_nil
Definition: sol.hpp:4683

§ clear()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::clear ( lua_State *  L)
inlinestatic
16740  {
16741  return luaL_error(L, "sol: cannot call 'clear' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16742  }

§ empty()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::empty ( lua_State *  L)
inlinestatic
16744  {
16745  return luaL_error(L, "sol: cannot call 'empty' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16746  }

§ end()

template<typename X, typename = void>
static iterator sol::container_detail::container_traits_default< X, typename >::end ( lua_State *  L,
T  
)
inlinestatic
16769  {
16770  luaL_error(L, "sol: cannot call 'end' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16771  return lua_nil;
16772  }
const lua_nil_t lua_nil
Definition: sol.hpp:4683

§ erase()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::erase ( lua_State *  L)
inlinestatic
16748  {
16749  return luaL_error(L, "sol: cannot call 'erase' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16750  }

§ find()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::find ( lua_State *  L)
inlinestatic
16732  {
16733  return luaL_error(L, "sol: cannot call 'find' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16734  }

§ get()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::get ( lua_State *  L)
inlinestatic
16708  {
16709  return luaL_error(L, "sol: cannot call 'get(key)' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16710  }

§ index_get()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::index_get ( lua_State *  L)
inlinestatic
16712  {
16713  return luaL_error(L, "sol: cannot call 'container[key]' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16714  }

§ index_set()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::index_set ( lua_State *  L)
inlinestatic
16720  {
16721  return luaL_error(L, "sol: cannot call 'container[key] = value' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16722  }

§ insert()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::insert ( lua_State *  L)
inlinestatic
16728  {
16729  return luaL_error(L, "sol: cannot call 'insert' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16730  }

§ ipairs()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::ipairs ( lua_State *  L)
inlinestatic
16760  {
16761  return luaL_error(L, "sol: cannot call '__ipairs' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16762  }

§ next()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::next ( lua_State *  L)
inlinestatic
16752  {
16753  return luaL_error(L, "sol: cannot call 'next' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16754  }

§ pairs()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::pairs ( lua_State *  L)
inlinestatic
16756  {
16757  return luaL_error(L, "sol: cannot call '__pairs/pairs' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16758  }

§ set()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::set ( lua_State *  L)
inlinestatic
16716  {
16717  return luaL_error(L, "sol: cannot call 'set(key, value)' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16718  }

§ size()

template<typename X, typename = void>
static int sol::container_detail::container_traits_default< X, typename >::size ( lua_State *  L)
inlinestatic
16736  {
16737  return luaL_error(L, "sol: cannot call 'end' on type '%s': it is not recognized as a container", detail::demangle<T>().c_str());
16738  }

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