#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>
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) |
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().
Definition at line 314 of file push_check.hpp.
Referenced by ai::cfun_ai_get_avoid(), ai::impl_ai_aspect_get(), impl_unit_get(), impl_unit_type_get(), game_lua_kernel::intf_get_terrain_info(), intf_random(), game_lua_kernel::intf_random(), intf_synchronize_choices(), game_lua_kernel::mouse_over_hex_callback(), and game_lua_kernel::select_hex_callback().