Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BasicSchema.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ContextArea.h"
7#include "mc/deps/cereal/schema/SerializationTraits.h"
8#include "mc/deps/cereal/schema/VariantPriorityLevel.h"
9#include "mc/external/cereal/StringViewHash.h"
10#include "mc/platform/brstd/flat_set.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cereal { class Constraint; }
15namespace cereal { struct DescriptionConfig; }
16namespace cereal { struct MetaVisitor; }
17namespace cereal { struct SchemaDescription; }
18namespace cereal { struct SchemaReader; }
19namespace cereal { struct SchemaWriter; }
20namespace cereal::internal { struct LoadState; }
21namespace cereal::internal { struct OverrideState; }
22namespace cereal::internal { struct ReflectionContext; }
23namespace cereal::internal { struct SaveState; }
24// clang-format on
25
26namespace cereal::internal {
27
29public:
30 // BasicSchema inner types declare
31 // clang-format off
32 struct EnumMapping;
33 struct GetterDescriptor;
34 struct MemberDescriptor;
35 struct MemberFamily;
36 struct SetterDescriptor;
38 struct TypeDescriptor;
39 // clang-format on
40
41 // BasicSchema inner types define
42 struct EnumMapping {
43 public:
44 // EnumMapping inner types declare
45 // clang-format off
46 struct EnumValue;
47 struct View;
48 // clang-format on
49
50 // EnumMapping inner types define
51 struct EnumValue {
52 public:
53 // member variables
54 // NOLINTBEGIN
55 ::ll::TypedStorage<1, 1, bool> mIsDeprecated;
56 // NOLINTEND
57 };
58
59 struct View {
60 public:
61 // member variables
62 // NOLINTBEGIN
63 ::ll::TypedStorage<4, 4, uint> mScope;
64 ::ll::
65 TypedStorage<8, 64, ::std::unordered_map<uint, ::cereal::internal::BasicSchema::EnumMapping::EnumValue>>
66 mValues;
67 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mParent;
68 // NOLINTEND
69 };
70
71 public:
72 // member variables
73 // NOLINTBEGIN
74 ::ll::TypedStorage<8, 24, ::std::vector<::cereal::internal::BasicSchema::EnumMapping::View>> mViews;
75 // NOLINTEND
76 };
77
79 public:
80 // member variables
81 // NOLINTBEGIN
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::internal::BasicSchema>> mPtr;
83 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mGetterFunction;
84 ::ll::TypedStorage<1, 1, ::cereal::ContextArea> mAllowedAreas;
85 // NOLINTEND
86 };
87
89 public:
90 // member variables
91 // NOLINTBEGIN
92 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::internal::BasicSchema>> mPtr;
93 ::ll::TypedStorage<8, 16, ::std::shared_ptr<void>> mVisitorData;
94 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::Constraint>> mConstraint;
95 ::ll::TypedStorage<8, 32, ::std::string> mNameExt;
96 ::ll::TypedStorage<8, 32, ::std::string> mName;
97 ::ll::TypedStorage<
98 8,
99 72,
100 ::entt::dense_map<
101 ::std::string,
102 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
104 ::std::equal_to<void>>>
105 mUserPropertiesMap;
106 ::ll::TypedStorage<
107 8,
108 24,
111 ::std::less<void>,
112 ::std::vector<::cereal::internal::OverrideState>>>
113 mOverridingTypes;
114 ::ll::TypedStorage<8, 32, ::std::string> mErrorMessage;
115 ::ll::TypedStorage<1, 1, ::cereal::SerializationTraits> mSerializationTraits;
116 ::ll::TypedStorage<1, 1, ::cereal::ContextArea> mAllowedAreas;
117 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mScope;
118 ::ll::TypedStorage<1, 1, bool> mIsDeprecatedComponent;
119 // NOLINTEND
120
121 public:
122 // member functions
123 // NOLINTBEGIN
125
127 // NOLINTEND
128
129 public:
130 // constructor thunks
131 // NOLINTBEGIN
132 MCNAPI void* $ctor();
133 // NOLINTEND
134
135 public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCNAPI void $dtor();
139 // NOLINTEND
140 };
141
143 public:
144 // member variables
145 // NOLINTBEGIN
146 ::ll::TypedStorage<8, 16, ::std::string_view> mPrefix;
147 ::ll::TypedStorage<8, 40, ::std::basic_regex<char, ::std::regex_traits<char>>> mRegex;
148 ::ll::TypedStorage<4, 4, uint> mMemberId;
149 // NOLINTEND
150 };
151
153 public:
154 // member variables
155 // NOLINTBEGIN
156 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::internal::BasicSchema>> mPtr;
157 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::Constraint>> mConstraint;
158 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mSetterFunction;
159 ::ll::TypedStorage<1, 1, ::cereal::ContextArea> mAllowedAreas;
160 // NOLINTEND
161 };
162
164 public:
165 // member variables
166 // NOLINTBEGIN
167 ::ll::TypedStorage<8, 8, ::entt::meta_type (*)(::entt::meta_ctx const&)> mResolve;
168 ::ll::TypedStorage<8, 32, ::std::string> mTaggedName;
169 // NOLINTEND
170 };
171
173 public:
174 // member variables
175 // NOLINTBEGIN
176 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cereal::internal::BasicSchema>> mPtr;
177 ::ll::TypedStorage<8, 16, ::std::shared_ptr<void>> mVisitorData;
178 ::ll::TypedStorage<8, 32, ::std::string> mName;
179 ::ll::TypedStorage<8, 24, ::cereal::internal::BasicSchema::EnumMapping> mEnumMapping;
180 ::ll::TypedStorage<
181 8,
182 72,
183 ::entt::dense_map<
184 ::std::string,
185 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
187 ::std::equal_to<void>>>
188 mUserPropertiesMap;
189 ::ll::TypedStorage<8, 24, ::std::vector<::cereal::internal::BasicSchema::MemberFamily>> mMemberFamilies;
190 ::ll::TypedStorage<8, 32, ::std::string> mErrorMessage;
191 // NOLINTEND
192
193 public:
194 // member functions
195 // NOLINTBEGIN
197 // NOLINTEND
198
199 public:
200 // destructor thunk
201 // NOLINTBEGIN
202 MCNAPI void $dtor();
203 // NOLINTEND
204 };
205
206 using IdType = uint;
207
208 using OverridingSet = ::brstd::flat_set<
210 ::std::less<void>,
211 ::std::vector<::cereal::internal::OverrideState>>;
212
213public:
214 // virtual functions
215 // NOLINTBEGIN
216 virtual ~BasicSchema() = default;
217
218 virtual bool isGreedy(::entt::meta_ctx const& ctx) const;
219
220 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const& ctx) const;
221
222 virtual bool doMap(::entt::meta_any& src, ::entt::meta_any& dst, ::cereal::MetaVisitor& visitor) const;
223
224 virtual ::cereal::internal::BasicSchema const& doUnwrap(::entt::meta_any& elem, bool fillIfEmpty) const;
225
226 virtual void doLoad(
228 ::entt::meta_any& any,
229 ::entt::meta_any const& udata,
231 ) const;
232
233 virtual void doSave(
235 ::entt::meta_any const& any,
237 ) const;
238
239 virtual ::cereal::SchemaDescription
240 makeDescription(::cereal::internal::ReflectionContext const& ctx, ::cereal::DescriptionConfig config) const = 0;
241 // NOLINTEND
242
243public:
244 // member functions
245 // NOLINTBEGIN
246 MCNAPI bool
248 ::entt::meta_any& src,
249 ::entt::meta_any& dst,
250 ::cereal::MetaVisitor& visitor) const;
251 // NOLINTEND
252
253public:
254 // virtual function thunks
255 // NOLINTBEGIN
256 MCNAPI bool $isGreedy(::entt::meta_ctx const& ctx) const;
257
258 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const& ctx) const;
259
260 MCNAPI bool $doMap(::entt::meta_any& src, ::entt::meta_any& dst, ::cereal::MetaVisitor& visitor) const;
261
262 MCNAPI ::cereal::internal::BasicSchema const& $doUnwrap(::entt::meta_any& elem, bool fillIfEmpty) const;
263
264
265 // NOLINTEND
266};
267
268} // namespace cereal::internal
Definition flat_set.h:10
Definition Constraint.h:17
Definition BasicSchema.h:28
MCAPI::cereal::internal::BasicSchema const & $doUnwrap(::entt::meta_any &elem, bool fillIfEmpty) const
MCAPI::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const &ctx) const
MCAPI bool map(::cereal::internal::BasicSchema const &schema, ::entt::meta_any &src, ::entt::meta_any &dst, ::cereal::MetaVisitor &visitor) const
MCAPI bool $isGreedy(::entt::meta_ctx const &ctx) const
MCAPI bool $doMap(::entt::meta_any &src, ::entt::meta_any &dst, ::cereal::MetaVisitor &visitor) const
Definition DescriptionConfig.h:12
Definition MetaVisitor.h:15
Definition SchemaDescription.h:21
Definition SchemaReader.h:13
Definition SchemaWriter.h:16
Definition LoadState.h:14
Definition OverrideState.h:10
Definition ReflectionContext.h:10
Definition SaveState.h:13
Definition StringViewHash.h:7
Definition ctx.h:5