cl3.binding.hpp (9140B)
1 // Auto generated code, do not edit. See gen_binding in project root. 2 #ifndef LIBSHIT_BINDING_GENERATOR 3 #if LIBSHIT_WITH_LUA 4 #include <libshit/lua/user_type.hpp> 5 6 7 const char ::Neptools::Cl3::TYPE_NAME[] = "neptools.cl3"; 8 9 const char ::Neptools::Cl3::Entry::TYPE_NAME[] = "neptools.cl3.entry"; 10 template <> 11 const char ::cl3_entry::TYPE_NAME[] = "libshit.ordered_map_cl3_entry"; 12 13 namespace Libshit::Lua 14 { 15 16 // class neptools.cl3 17 template<> 18 void TypeRegisterTraits<::Neptools::Cl3>::Register(TypeBuilder& bld) 19 { 20 bld.Inherit<::Neptools::Cl3, ::Neptools::Dumpable>(); 21 22 bld.AddFunction< 23 &::Libshit::Lua::TypeTraits<::Neptools::Cl3>::Make<LuaGetRef<::Neptools::Source>>, 24 &::Libshit::Lua::TypeTraits<::Neptools::Cl3>::Make<LuaGetRef<::Neptools::Endian>>, 25 &::Libshit::Lua::TypeTraits<::Neptools::Cl3>::Make<LuaGetRef<::Libshit::Lua::StateRef>, LuaGetRef<::Neptools::Endian>, LuaGetRef<::uint32_t>, LuaGetRef<::Libshit::Lua::RawTable>> 26 >("new"); 27 bld.AddFunction< 28 &::Libshit::Lua::GetMember<::Neptools::Cl3, ::Neptools::Endian, &::Neptools::Cl3::endian> 29 >("get_endian"); 30 bld.AddFunction< 31 &::Libshit::Lua::SetMember<::Neptools::Cl3, ::Neptools::Endian, &::Neptools::Cl3::endian> 32 >("set_endian"); 33 bld.AddFunction< 34 &::Libshit::Lua::GetMember<::Neptools::Cl3, ::uint32_t, &::Neptools::Cl3::field_14> 35 >("get_field_14"); 36 bld.AddFunction< 37 &::Libshit::Lua::SetMember<::Neptools::Cl3, ::uint32_t, &::Neptools::Cl3::field_14> 38 >("set_field_14"); 39 bld.AddFunction< 40 &::Libshit::Lua::GetRefCountedOwnedMember<::Neptools::Cl3, ::Neptools::Cl3::Entries, &::Neptools::Cl3::entries> 41 >("get_entries"); 42 bld.AddFunction< 43 static_cast<::uint32_t (::Neptools::Cl3::*)(const Libshit::WeakSmartPtr<::Neptools::Cl3::Entry> &) const noexcept>(&::Neptools::Cl3::IndexOf) 44 >("index_of"); 45 bld.AddFunction< 46 static_cast<::Neptools::Cl3::Entry & (::Neptools::Cl3::*)(::Libshit::StringView)>(&::Neptools::Cl3::GetOrCreateFile) 47 >("get_or_create_file"); 48 bld.AddFunction< 49 static_cast<void (::Neptools::Cl3::*)(const ::boost::filesystem::path &) const>(&::Neptools::Cl3::ExtractTo) 50 >("extract_to"); 51 bld.AddFunction< 52 static_cast<void (::Neptools::Cl3::*)(const ::boost::filesystem::path &)>(&::Neptools::Cl3::UpdateFromDir) 53 >("update_from_dir"); 54 bld.AddFunction< 55 static_cast<::Neptools::Stcm::File & (::Neptools::Cl3::*)()>(&::Neptools::Cl3::GetStcm) 56 >("get_stcm"); 57 58 } 59 static TypeRegister::StateRegister<::Neptools::Cl3> libshit_lua_statereg_797f4b2a52c3c5bafecaeb634c16fffef5201e0778e9bbd6b94aaf282dc3e413; 60 61 // class neptools.cl3.entry 62 template<> 63 void TypeRegisterTraits<::Neptools::Cl3::Entry>::Register(TypeBuilder& bld) 64 { 65 66 bld.AddFunction< 67 &::Libshit::Lua::GetMember<::Neptools::Cl3::Entry, std::string, &::Neptools::Cl3::Entry::name> 68 >("get_name"); 69 bld.AddFunction< 70 &::Libshit::Lua::SetMember<::Neptools::Cl3::Entry, std::string, &::Neptools::Cl3::Entry::name> 71 >("set_name"); 72 bld.AddFunction< 73 &::Libshit::Lua::GetMember<::Neptools::Cl3::Entry, ::uint32_t, &::Neptools::Cl3::Entry::field_200> 74 >("get_field_200"); 75 bld.AddFunction< 76 &::Libshit::Lua::SetMember<::Neptools::Cl3::Entry, ::uint32_t, &::Neptools::Cl3::Entry::field_200> 77 >("set_field_200"); 78 bld.AddFunction< 79 &::Libshit::Lua::GetRefCountedOwnedMember<::Neptools::Cl3::Entry, ::Neptools::Cl3::Entry::Links, &::Neptools::Cl3::Entry::links> 80 >("get_links"); 81 bld.AddFunction< 82 &::Libshit::Lua::GetMember<::Neptools::Cl3::Entry, Libshit::SmartPtr<::Neptools::Dumpable>, &::Neptools::Cl3::Entry::src> 83 >("get_src"); 84 bld.AddFunction< 85 &::Libshit::Lua::SetMember<::Neptools::Cl3::Entry, Libshit::SmartPtr<::Neptools::Dumpable>, &::Neptools::Cl3::Entry::src> 86 >("set_src"); 87 bld.AddFunction< 88 &::Libshit::Lua::TypeTraits<::Neptools::Cl3::Entry>::Make<LuaGetRef<std::string>, LuaGetRef<::uint32_t>, LuaGetRef<Libshit::SmartPtr<::Neptools::Dumpable>>>, 89 &::Libshit::Lua::TypeTraits<::Neptools::Cl3::Entry>::Make<LuaGetRef<std::string>> 90 >("new"); 91 92 } 93 static TypeRegister::StateRegister<::Neptools::Cl3::Entry> libshit_lua_statereg_50c9127c15cea2987e3805b36daa8d9e1fb1b6ed1927866df5bdfe4e5816aad2; 94 95 // class libshit.ordered_map_cl3_entry 96 template<> 97 void TypeRegisterTraits<::cl3_entry>::Register(TypeBuilder& bld) 98 { 99 100 bld.AddFunction< 101 &::Libshit::Lua::TypeTraits<::cl3_entry>::Make<> 102 >("new"); 103 bld.AddFunction< 104 static_cast<::Neptools::Cl3::Entry & (::cl3_entry::*)(::cl3_entry::size_type)>(&::cl3_entry::at) 105 >("at"); 106 bld.AddFunction< 107 static_cast<::Neptools::Cl3::Entry & (::cl3_entry::*)()>(&::cl3_entry::front<Check::Throw>) 108 >("front"); 109 bld.AddFunction< 110 static_cast<::Neptools::Cl3::Entry & (::cl3_entry::*)()>(&::cl3_entry::back<Check::Throw>) 111 >("back"); 112 bld.AddFunction< 113 static_cast<bool (::cl3_entry::*)() const noexcept>(&::cl3_entry::empty) 114 >("empty"); 115 bld.AddFunction< 116 static_cast<::cl3_entry::size_type (::cl3_entry::*)() const noexcept>(&::cl3_entry::size) 117 >("size"); 118 bld.AddFunction< 119 static_cast<::cl3_entry::size_type (::cl3_entry::*)() const noexcept>(&::cl3_entry::size) 120 >("__len"); 121 bld.AddFunction< 122 static_cast<::cl3_entry::size_type (::cl3_entry::*)() const noexcept>(&::cl3_entry::max_size) 123 >("max_size"); 124 bld.AddFunction< 125 static_cast<void (::cl3_entry::*)(::size_t)>(&::cl3_entry::reserve) 126 >("reserve"); 127 bld.AddFunction< 128 static_cast<::cl3_entry::size_type (::cl3_entry::*)() const noexcept>(&::cl3_entry::capacity) 129 >("capacity"); 130 bld.AddFunction< 131 static_cast<void (::cl3_entry::*)()>(&::cl3_entry::shrink_to_fit) 132 >("shrink_to_fit"); 133 bld.AddFunction< 134 static_cast<void (::cl3_entry::*)() noexcept>(&::cl3_entry::clear) 135 >("clear"); 136 bld.AddFunction< 137 static_cast<void (::cl3_entry::*)() noexcept>(&::cl3_entry::pop_back<Check::Throw>) 138 >("pop_back"); 139 bld.AddFunction< 140 static_cast<void (::cl3_entry::*)(::cl3_entry &)>(&::cl3_entry::swap) 141 >("swap"); 142 bld.AddFunction< 143 static_cast<::cl3_entry::size_type (::cl3_entry::*)(const ::Neptools::Cl3::Entry &) const>(&::cl3_entry::index_of<Check::Throw>) 144 >("index_of"); 145 bld.AddFunction< 146 static_cast<::cl3_entry::size_type (::cl3_entry::*)(const ::cl3_entry::key_type &) const>(&::cl3_entry::count) 147 >("count"); 148 bld.AddFunction< 149 static_cast<Libshit::SmartPtr<::Neptools::Cl3::Entry> (*)(::cl3_entry &, ::size_t) noexcept>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::get), 150 static_cast<Libshit::SmartPtr<::Neptools::Cl3::Entry> (*)(::cl3_entry &, const typename ::cl3_entry::key_type &)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::get), 151 static_cast<void (*)(::cl3_entry &, ::Libshit::Lua::Skip) noexcept>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::get) 152 >("get"); 153 bld.AddFunction< 154 static_cast<std::tuple<bool, ::size_t> (*)(::cl3_entry &, ::size_t, ::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue, ::std::less<::std::basic_string<char> > >::NotNullPtr &&)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::insert) 155 >("insert"); 156 bld.AddFunction< 157 static_cast<::size_t (*)(::cl3_entry &, ::size_t, ::size_t)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::erase), 158 static_cast<::size_t (*)(::cl3_entry &, ::size_t)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::erase) 159 >("erase"); 160 bld.AddFunction< 161 static_cast<::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue, ::std::less<::std::basic_string<char> > >::NotNullPtr (*)(::cl3_entry &, ::size_t)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::remove) 162 >("remove"); 163 bld.AddFunction< 164 static_cast<std::tuple<bool, ::size_t> (*)(::cl3_entry &, ::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue, ::std::less<::std::basic_string<char> > >::NotNullPtr &&)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::push_back) 165 >("push_back"); 166 bld.AddFunction< 167 static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, ::cl3_entry &, const typename ::cl3_entry::key_type &)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::find) 168 >("find"); 169 bld.AddFunction< 170 static_cast<::Libshit::Lua::RetNum (*)(::Libshit::Lua::StateRef, ::cl3_entry &)>(::Libshit::OrderedMapLua<::Neptools::Cl3::Entry, ::Neptools::Cl3::EntryKeyOfValue>::to_table) 171 >("to_table"); 172 luaL_getmetatable(bld, "libshit_ipairs"); bld.SetField("__ipairs"); 173 } 174 static TypeRegister::StateRegister<::cl3_entry> libshit_lua_statereg_7bbce3104ee82e2043b33e6e0cd24ede2896c34bebfc47dc7afe4a275c6dcaf2; 175 176 } 177 #endif 178 #endif