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
8// auto generated forward declare list
9// clang-format off
10namespace cereal { class Constraint; }
11namespace cereal { class SerializerContext; }
12namespace cereal { struct SchemaDescription; }
13namespace cereal { struct SchemaReader; }
14namespace cereal { struct SchemaWriter; }
15// clang-format on
16
17namespace cereal::internal {
18
20public:
21 // BasicSchema inner types declare
22 // clang-format off
23 struct DynamicSetterArg;
24 struct MemberDescriptor;
25 struct SetterDescriptor;
26 struct TypeDescriptor;
27 // clang-format on
28
29 // BasicSchema inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 TypeDescriptor& operator=(TypeDescriptor const&);
46
47 public:
48 // member functions
49 // NOLINTBEGIN
51 // NOLINTEND
52
53 public:
54 // destructor thunk
55 // NOLINTBEGIN
56 MCNAPI void $dtor();
57 // NOLINTEND
58 };
59
61 public:
62 // member variables
63 // NOLINTBEGIN
66 // NOLINTEND
67
68 public:
69 // prevent constructor by default
70 SetterDescriptor& operator=(SetterDescriptor const&);
73 };
74
76 public:
77 // member variables
78 // NOLINTBEGIN
86 // NOLINTEND
87
88 public:
89 // prevent constructor by default
90 MemberDescriptor& operator=(MemberDescriptor const&);
93
94 public:
95 // member functions
96 // NOLINTBEGIN
98
100 // NOLINTEND
101
102 public:
103 // constructor thunks
104 // NOLINTBEGIN
106 // NOLINTEND
107
108 public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCNAPI void $dtor();
112 // NOLINTEND
113 };
114
116 public:
117 // member variables
118 // NOLINTBEGIN
121 // NOLINTEND
122
123 public:
124 // prevent constructor by default
125 DynamicSetterArg& operator=(DynamicSetterArg const&);
128
129 public:
130 // member functions
131 // NOLINTBEGIN
133 // NOLINTEND
134
135 public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCNAPI void $dtor();
139 // NOLINTEND
140 };
141
142 enum class DescriptionMode : int {
143 Brief = 0,
144 Detailed = 1,
145 };
146
147public:
148 // virtual functions
149 // NOLINTBEGIN
150 // vIndex: 0
151 virtual ~BasicSchema() = default;
152
153 // vIndex: 1
154 virtual bool isGreedy(::entt::meta_ctx const&) const;
155
156 // vIndex: 2
157 virtual void members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
158
159 // vIndex: 3
160 virtual ::cereal::internal::BasicSchema::MemberDescriptor const* member(::entt::meta_ctx const&, uint) const;
161
162 // vIndex: 4
163 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const&) const;
164
165 // vIndex: 5
166 virtual void validateConstraint(
167 ::cereal::Constraint const& constraint,
168 ::entt::meta_any const& any,
170 ) const;
171
172 // vIndex: 6
173 virtual void
174 doLoad(::cereal::SchemaReader&, ::entt::meta_any&, ::entt::meta_any const&, ::cereal::SerializerContext&) const;
175
176 // vIndex: 7
177 virtual void doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
178
179 // vIndex: 8
180 virtual bool doVerifyInitialization(::cereal::SchemaWriter const&, ::entt::meta_any const&) const;
181
182 // vIndex: 9
183 virtual ::cereal::SchemaDescription
184 makeDescription(::entt::meta_ctx const&, ::cereal::internal::BasicSchema::DescriptionMode) const = 0;
185 // NOLINTEND
186
187public:
188 // member functions
189 // NOLINTBEGIN
190 MCNAPI void load(
192 ::entt::meta_any& any,
193 ::entt::meta_any const& udata,
195 ) const;
196 // NOLINTEND
197
198public:
199 // virtual function thunks
200 // NOLINTBEGIN
201 MCNAPI bool $isGreedy(::entt::meta_ctx const&) const;
202
203 MCNAPI void $members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
204
205 MCNAPI ::cereal::internal::BasicSchema::MemberDescriptor const* $member(::entt::meta_ctx const&, uint) const;
206
207 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const&) const;
208
210 ::cereal::Constraint const& constraint,
211 ::entt::meta_any const& any,
213 ) const;
214
215 MCNAPI void $doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
216
217 MCNAPI bool $doVerifyInitialization(::cereal::SchemaWriter const&, ::entt::meta_any const&) const;
218 // NOLINTEND
219};
220
221} // namespace cereal::internal
Definition Constraint.h:13
Definition SerializerContext.h:11
Definition BasicSchema.h:19
MCAPI void load(::cereal::SchemaReader &value, ::entt::meta_any &any, ::entt::meta_any const &udata, ::cereal::SerializerContext &context) const
MCAPI void $validateConstraint(::cereal::Constraint const &constraint, ::entt::meta_any const &any, ::cereal::SerializerContext &context) const
MCAPI::cereal::internal::BasicSchema::MemberDescriptor const * $member(::entt::meta_ctx const &, uint) const
MCAPI bool $doVerifyInitialization(::cereal::SchemaWriter const &, ::entt::meta_any const &) const
MCAPI::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const &) const
MCAPI void $doSave(::cereal::SchemaWriter &, ::entt::meta_any const &, ::cereal::SerializerContext &context) const
MCAPI void $members(::entt::meta_ctx const &, ::std::function< void(uint, ::entt::meta_data)>) const
MCAPI bool $isGreedy(::entt::meta_ctx const &) const
Definition SchemaReader.h:10
Definition SchemaWriter.h:12
MCAPI MemberDescriptor(::cereal::internal::BasicSchema::MemberDescriptor &&)
MCAPI void * $ctor(::cereal::internal::BasicSchema::MemberDescriptor &&)
Definition context.h:5
Definition Alias.h:14