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/schema/VariantPriorityLevel.h"
7#include "mc/platform/brstd/flat_set.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace cereal { class SerializerContext; }
12namespace cereal { struct DescriptionConfig; }
13namespace cereal { struct SchemaDescription; }
14namespace cereal { struct SchemaReader; }
15namespace cereal { struct SchemaWriter; }
16namespace cereal::internal { struct LoadState; }
17namespace cereal::internal { struct OverrideState; }
18namespace cereal::internal { struct ReflectionContext; }
19namespace cereal::internal { struct SaveState; }
20// clang-format on
21
22namespace cereal::internal {
23
25public:
26 // BasicSchema inner types declare
27 // clang-format off
28 struct DynamicSetterArg;
29 struct GetterDescriptor;
30 struct MemberDescriptor;
31 struct MemberFamily;
32 struct SetterDescriptor;
34 struct TypeDescriptor;
35 // clang-format on
36
37 // BasicSchema inner types define
38 struct DynamicSetterArg {
39 public:
40 // member variables
41 // NOLINTBEGIN
44 // NOLINTEND
45
46 public:
47 // prevent constructor by default
48 DynamicSetterArg& operator=(DynamicSetterArg const&);
49 DynamicSetterArg(DynamicSetterArg const&);
50 DynamicSetterArg();
51
52 public:
53 // member functions
54 // NOLINTBEGIN
56 // NOLINTEND
57
58 public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCNAPI void $dtor();
62 // NOLINTEND
63 };
64
65 struct GetterDescriptor {
66 public:
67 // member variables
68 // NOLINTBEGIN
71 // NOLINTEND
72
73 public:
74 // prevent constructor by default
75 GetterDescriptor& operator=(GetterDescriptor const&);
76 GetterDescriptor(GetterDescriptor const&);
77 GetterDescriptor();
78 };
79
80 struct MemberDescriptor {
81 public:
82 // member variables
83 // NOLINTBEGIN
95 // NOLINTEND
96
97 public:
98 // prevent constructor by default
99 MemberDescriptor& operator=(MemberDescriptor const&);
100 MemberDescriptor(MemberDescriptor const&);
101 MemberDescriptor();
102
103 public:
104 // member functions
105 // NOLINTBEGIN
107
109 // NOLINTEND
110
111 public:
112 // constructor thunks
113 // NOLINTBEGIN
115 // NOLINTEND
116
117 public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCNAPI void $dtor();
121 // NOLINTEND
122 };
123
124 struct MemberFamily {
125 public:
126 // member variables
127 // NOLINTBEGIN
130 // NOLINTEND
131
132 public:
133 // prevent constructor by default
134 MemberFamily& operator=(MemberFamily const&);
135 MemberFamily(MemberFamily const&);
136 MemberFamily();
137 };
138
139 struct SetterDescriptor {
140 public:
141 // member variables
142 // NOLINTBEGIN
146 // NOLINTEND
147
148 public:
149 // prevent constructor by default
150 SetterDescriptor& operator=(SetterDescriptor const&);
151 SetterDescriptor(SetterDescriptor const&);
152 SetterDescriptor();
153 };
154
155 struct TaggedVariantDescriptor {
156 public:
157 // member variables
158 // NOLINTBEGIN
161 // NOLINTEND
162
163 public:
164 // prevent constructor by default
165 TaggedVariantDescriptor& operator=(TaggedVariantDescriptor const&);
166 TaggedVariantDescriptor(TaggedVariantDescriptor const&);
167 TaggedVariantDescriptor();
168 };
169
170 struct TypeDescriptor {
171 public:
172 // member variables
173 // NOLINTBEGIN
179 // NOLINTEND
180
181 public:
182 // prevent constructor by default
183 TypeDescriptor& operator=(TypeDescriptor const&);
184 TypeDescriptor(TypeDescriptor const&);
185 TypeDescriptor();
186
187 public:
188 // member functions
189 // NOLINTBEGIN
191 // NOLINTEND
192
193 public:
194 // destructor thunk
195 // NOLINTBEGIN
196 MCNAPI void $dtor();
197 // NOLINTEND
198 };
199
200public:
201 // virtual functions
202 // NOLINTBEGIN
203 virtual ~BasicSchema() = default;
204
205 virtual bool isGreedy(::entt::meta_ctx const& ctx) const;
206
207 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const& ctx) const;
208
209 virtual void doLoad(
211 ::entt::meta_any& any,
212 ::entt::meta_any const& udata,
214 ) const;
215
216 virtual void doSave(
218 ::entt::meta_any const& any,
220 ) const;
221
222 virtual ::cereal::SchemaDescription
223 makeDescription(::cereal::internal::ReflectionContext const& ctx, ::cereal::DescriptionConfig config) const = 0;
224 // NOLINTEND
225
226public:
227 // member functions
228 // NOLINTBEGIN
229 MCNAPI void load(
231 ::entt::meta_any& any,
232 ::entt::meta_any const& udata,
234 ) const;
235 // NOLINTEND
236
237public:
238 // static functions
239 // NOLINTBEGIN
240 MCNAPI static ::cereal::internal::BasicSchema const& lookup(::entt::meta_ctx const& ctx, ::entt::type_info info);
241 // NOLINTEND
242
243public:
244 // virtual function thunks
245 // NOLINTBEGIN
246 MCNAPI bool $isGreedy(::entt::meta_ctx const& ctx) const;
247
248 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const& ctx) const;
249
250
251 // NOLINTEND
252};
253
254} // namespace cereal::internal
Definition SerializerContext.h:17
Definition BasicSchema.h:24
MCAPI void load(::cereal::SchemaReader &value, ::entt::meta_any &any, ::entt::meta_any const &udata, ::cereal::internal::LoadState const &state) const
MCAPI::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const &ctx) const
MCAPI bool $isGreedy(::entt::meta_ctx const &ctx) const
static MCAPI ::cereal::internal::BasicSchema const & lookup(::entt::meta_ctx const &ctx, ::entt::type_info info)
Definition DescriptionConfig.h:10
Definition SchemaDescription.h:20
Definition SchemaReader.h:12
Definition SchemaWriter.h:16
MCAPI MemberDescriptor(::cereal::internal::BasicSchema::MemberDescriptor &&)
MCAPI void * $ctor(::cereal::internal::BasicSchema::MemberDescriptor &&)
Definition LoadState.h:7
Definition OverrideState.h:7
Definition ReflectionContext.h:10
Definition SaveState.h:7
Definition ctx.h:5
Definition Alias.h:14