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
87 // NOLINTEND
88
89 public:
90 // prevent constructor by default
91 MemberDescriptor& operator=(MemberDescriptor const&);
94
95 public:
96 // member functions
97 // NOLINTBEGIN
99
101 // NOLINTEND
102
103 public:
104 // constructor thunks
105 // NOLINTBEGIN
107 // NOLINTEND
108
109 public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCNAPI void $dtor();
113 // NOLINTEND
114 };
115
117 public:
118 // member variables
119 // NOLINTBEGIN
122 // NOLINTEND
123
124 public:
125 // prevent constructor by default
126 DynamicSetterArg& operator=(DynamicSetterArg const&);
129
130 public:
131 // member functions
132 // NOLINTBEGIN
134 // NOLINTEND
135
136 public:
137 // destructor thunk
138 // NOLINTBEGIN
139 MCNAPI void $dtor();
140 // NOLINTEND
141 };
142
143 enum class DescriptionMode : int {
144 Brief = 0,
145 Detailed = 1,
146 };
147
148public:
149 // virtual functions
150 // NOLINTBEGIN
151 // vIndex: 0
152 virtual ~BasicSchema() = default;
153
154 // vIndex: 1
155 virtual bool isGreedy(::entt::meta_ctx const&) const;
156
157 // vIndex: 2
158 virtual void members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
159
160 // vIndex: 3
161 virtual ::cereal::internal::BasicSchema::MemberDescriptor const* member(::entt::meta_ctx const&, uint) const;
162
163 // vIndex: 4
164 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const&) const;
165
166 // vIndex: 5
167 virtual void validateConstraint(
168 ::cereal::Constraint const& constraint,
169 ::entt::meta_any const& any,
171 ) const;
172
173 // vIndex: 6
174 virtual void
175 doLoad(::cereal::SchemaReader&, ::entt::meta_any&, ::entt::meta_any const&, ::cereal::SerializerContext&) const;
176
177 // vIndex: 7
178 virtual void doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
179
180 // vIndex: 8
181 virtual bool doVerifyInitialization(::cereal::SchemaWriter const&, ::entt::meta_any const&) const;
182
183 // vIndex: 9
184 virtual ::cereal::SchemaDescription
185 makeDescription(::entt::meta_ctx const&, ::cereal::internal::BasicSchema::DescriptionMode) const = 0;
186 // NOLINTEND
187
188public:
189 // member functions
190 // NOLINTBEGIN
191 MCNAPI void load(
193 ::entt::meta_any& any,
194 ::entt::meta_any const& udata,
196 ) const;
197 // NOLINTEND
198
199public:
200 // virtual function thunks
201 // NOLINTBEGIN
202 MCNAPI bool $isGreedy(::entt::meta_ctx const&) const;
203
204 MCNAPI void $members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
205
206 MCNAPI ::cereal::internal::BasicSchema::MemberDescriptor const* $member(::entt::meta_ctx const&, uint) const;
207
208 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const&) const;
209
211 ::cereal::Constraint const& constraint,
212 ::entt::meta_any const& any,
214 ) const;
215
216 MCNAPI void $doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
217
218 MCNAPI bool $doVerifyInitialization(::cereal::SchemaWriter const&, ::entt::meta_any const&) const;
219 // NOLINTEND
220};
221
222} // 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:11
Definition SchemaWriter.h:15
MCAPI MemberDescriptor(::cereal::internal::BasicSchema::MemberDescriptor &&)
MCAPI void * $ctor(::cereal::internal::BasicSchema::MemberDescriptor &&)
Definition context.h:5
Definition Alias.h:14