You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libshit/test/container/ordered_map.binding.hpp

124 lines
6.3 KiB
C++

// Auto generated code, do not edit. See gen_binding in project root.
#ifndef LIBSHIT_BINDING_GENERATOR
#if LIBSHIT_WITH_LUA
#include <libshit/lua/user_type.hpp>
const char ::Libshit::Test::OMItemTest::TYPE_NAME[] =
"libshit.test.om_item_test";
template <>
const char ::om_item_test::TYPE_NAME[] =
"libshit.ordered_map_om_item_test";
namespace Libshit::Lua
{
// class libshit.test.om_item_test
template<>
void TypeRegisterTraits<::Libshit::Test::OMItemTest>::Register(TypeBuilder& bld)
{
bld.AddFunction<
&::Libshit::Lua::TypeTraits<::Libshit::Test::OMItemTest>::Make<LuaGetRef<std::string>, LuaGetRef<int>>
>("new");
bld.AddFunction<
&::Libshit::Lua::GetMember<::Libshit::Test::OMItemTest, std::string, &::Libshit::Test::OMItemTest::k>
>("get_k");
bld.AddFunction<
&::Libshit::Lua::SetMember<::Libshit::Test::OMItemTest, std::string, &::Libshit::Test::OMItemTest::k>
>("set_k");
bld.AddFunction<
&::Libshit::Lua::GetMember<::Libshit::Test::OMItemTest, int, &::Libshit::Test::OMItemTest::v>
>("get_v");
bld.AddFunction<
&::Libshit::Lua::SetMember<::Libshit::Test::OMItemTest, int, &::Libshit::Test::OMItemTest::v>
>("set_v");
}
static TypeRegister::StateRegister<::Libshit::Test::OMItemTest> libshit_lua_statereg_07549657fcbd3de602e2ed5e7ce7967de63967245af4a709d9fa4247ec86f763;
// class libshit.ordered_map_om_item_test
template<>
void TypeRegisterTraits<::om_item_test>::Register(TypeBuilder& bld)
{
bld.AddFunction<
&::Libshit::Lua::TypeTraits<::om_item_test>::Make<>
>("new");
bld.AddFunction<
static_cast<::Libshit::Test::OMItemTest & (::om_item_test::*)(::om_item_test::size_type)>(&::om_item_test::at)
>("at");
bld.AddFunction<
static_cast<::Libshit::Test::OMItemTest & (::om_item_test::*)()>(&::om_item_test::front<Check::Throw>)
>("front");
bld.AddFunction<
static_cast<::Libshit::Test::OMItemTest & (::om_item_test::*)()>(&::om_item_test::back<Check::Throw>)
>("back");
bld.AddFunction<
static_cast<bool (::om_item_test::*)() const noexcept>(&::om_item_test::empty)
>("empty");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)() const noexcept>(&::om_item_test::size)
>("size");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)() const noexcept>(&::om_item_test::size)
>("__len");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)() const noexcept>(&::om_item_test::max_size)
>("max_size");
bld.AddFunction<
static_cast<void (::om_item_test::*)(::size_t)>(&::om_item_test::reserve)
>("reserve");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)() const noexcept>(&::om_item_test::capacity)
>("capacity");
bld.AddFunction<
static_cast<void (::om_item_test::*)()>(&::om_item_test::shrink_to_fit)
>("shrink_to_fit");
bld.AddFunction<
static_cast<void (::om_item_test::*)() noexcept>(&::om_item_test::clear)
>("clear");
bld.AddFunction<
static_cast<void (::om_item_test::*)() noexcept>(&::om_item_test::pop_back<Check::Throw>)
>("pop_back");
bld.AddFunction<
static_cast<void (::om_item_test::*)(::om_item_test &)>(&::om_item_test::swap)
>("swap");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)(const ::Libshit::Test::OMItemTest &) const>(&::om_item_test::index_of<Check::Throw>)
>("index_of");
bld.AddFunction<
static_cast<::om_item_test::size_type (::om_item_test::*)(const ::om_item_test::key_type &) const>(&::om_item_test::count)
>("count");
bld.AddFunction<
static_cast<Libshit::SmartPtr<::Libshit::Test::OMItemTest> (*)(::om_item_test &, ::size_t) noexcept>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::get),
static_cast<Libshit::SmartPtr<::Libshit::Test::OMItemTest> (*)(::om_item_test &, const typename ::om_item_test::key_type &)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::get),
static_cast<void (*)(::om_item_test &, ::Libshit::Lua::Skip) noexcept>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::get)
>("get");
bld.AddFunction<
static_cast<std::tuple<bool, ::size_t> (*)(::om_item_test &, ::size_t, ::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits, ::std::less<::std::basic_string<char> > >::NotNullPtr &&)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::insert)
>("insert");
bld.AddFunction<
static_cast<::size_t (*)(::om_item_test &, ::size_t, ::size_t)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::erase),
static_cast<::size_t (*)(::om_item_test &, ::size_t)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::erase)
>("erase");
bld.AddFunction<
static_cast<::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits, ::std::less<::std::basic_string<char> > >::NotNullPtr (*)(::om_item_test &, ::size_t)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::remove)
>("remove");
bld.AddFunction<
static_cast<std::tuple<bool, ::size_t> (*)(::om_item_test &, ::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits, ::std::less<::std::basic_string<char> > >::NotNullPtr &&)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::push_back)
>("push_back");
bld.AddFunction<
static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, ::om_item_test &, const typename ::om_item_test::key_type &)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::find)
>("find");
bld.AddFunction<
static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, ::om_item_test &)>(::Libshit::OrderedMapLua<::Libshit::Test::OMItemTest, ::Libshit::Test::OMItemTestTraits>::to_table)
>("to_table");
luaL_getmetatable(bld, "libshit_ipairs"); bld.SetField("__ipairs");
}
static TypeRegister::StateRegister<::om_item_test> libshit_lua_statereg_09f6d11f498e79fe4aa65eb398c4e3f4861820ea917b90a0ca6e772796ac9754;
}
#endif
#endif