The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
push_check.hpp File Reference
#include "scripting/lua_common.hpp"
#include <boost/type_traits.hpp>
#include <boost/mpl/not.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/has_xxx.hpp>
#include "tstring.hpp"
#include "map/location.hpp"
#include "lua/lauxlib.h"
#include "lua/lua.h"
#include <cassert>
Include dependency graph for push_check.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lua_check_impl::is_container< T, Enable >
 
struct  lua_check_impl::is_map< T, Enable >
 
struct  lua_check_impl::is_pair< T, Enable >
 
struct  lua_check_impl::is_container< T & >
 
struct  lua_check_impl::is_map< T & >
 
struct  lua_check_impl::remove_constref< T >
 

Namespaces

 lua_check_impl
 
 lua_check_impl::detail
 

Functions

template<typename T >
boost::enable_if< typename
boost::is_same< T, std::string >
::type, std::string >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, std::string >
::type, void >::type 
lua_check_impl::lua_push (lua_State *L, const T &val)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, config >
::type, config >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, config >
::type, void >::type 
lua_check_impl::lua_push (lua_State *L, const config &val)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T,
map_location >::type,
map_location >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T,
map_location >::type, void >
::type 
lua_check_impl::lua_push (lua_State *L, const map_location &val)
 
template<typename T >
boost::enable_if
< boost::is_base_of< enum_tag,
T >, T >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if
< boost::is_base_of< enum_tag,
T >, void >::type 
lua_check_impl::lua_push (lua_State *L, T val)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, t_string >
::type, t_string >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, t_string >
::type, void >::type 
lua_check_impl::lua_push (lua_State *L, const t_string &val)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, bool >
::type, bool >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::is_same< T, bool >
::type, void >::type 
lua_check_impl::lua_push (lua_State *L, bool val)
 
template<typename T >
boost::enable_if
< boost::is_float< T >, T >
::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if
< boost::is_float< T >, void >
::type 
lua_check_impl::lua_push (lua_State *L, T val)
 
template<typename T >
boost::enable_if
< boost::mpl::and_
< boost::is_integral< T >
, boost::mpl::not_< typename
boost::is_same< T, bool >
::type > >, T >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if
< boost::mpl::and_
< boost::is_integral< T >
, boost::mpl::not_< typename
boost::is_same< T, bool >
::type > >, void >::type 
lua_check_impl::lua_push (lua_State *L, T val)
 
template<typename T >
boost::enable_if< typename
boost::mpl::and_< typename
is_pair< T >::type, typename
boost::mpl::not_< typename
boost::is_const< typename
T::first_type > >::type >
::type, T >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::mpl::and_< typename
is_pair< T >::type, typename
boost::mpl::not_< typename
boost::is_const< typename
T::first_type > >::type >
::type, void >::type 
lua_check_impl::lua_push (lua_State *L, const T &val)
 
template<typename T >
boost::enable_if< typename
boost::mpl::and_< typename
is_container< T >::type,
typename boost::mpl::not_
< typename boost::is_same< T,
std::string > >::type >::type,
T >::type 
lua_check_impl::lua_check (lua_State *L, int n)
 
template<typename T >
boost::enable_if< typename
boost::mpl::and_< typename
is_container< T >::type,
typename boost::mpl::not_
< typename boost::is_same< T,
std::string > >::type,
typename boost::mpl::not_
< typename is_map< T >::type >
::type >::type, void >::type 
lua_check_impl::lua_push (lua_State *L, const T &list)
 
template<typename T >
boost::enable_if< typename
is_map< T >::type, void >
::type 
lua_check_impl::lua_push (lua_State *L, const T &map)
 
template<typename T >
lua_check_impl::remove_constref
< T >::type 
lua_check (lua_State *L, int n)
 
template<typename T >
void lua_push (lua_State *L, const T &val)
 

Function Documentation

template<typename T >
lua_check_impl::remove_constref<T>::type lua_check ( lua_State L,
int  n 
)

Definition at line 307 of file push_check.hpp.

Referenced by impl_unit_set().

template<typename T >
void lua_push ( lua_State L,
const T &  val 
)