LeviLamina
Loading...
Searching...
No Matches
BasicSchema.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace cereal { class Constraint; }
8namespace cereal { class SerializerContext; }
9namespace cereal { struct ReflectionCtx; }
10namespace cereal { struct SchemaDescription; }
11namespace cereal { struct SchemaReader; }
12namespace cereal { struct SchemaWriter; }
13// clang-format on
14
15namespace cereal::internal {
16
18public:
19 // BasicSchema inner types declare
20 // clang-format off
21 struct DynamicSetterArg;
22 struct MemberDescriptor;
23 struct SetterDescriptor;
24 struct TypeDescriptor;
25 // clang-format on
26
27 // BasicSchema inner types define
29 public:
30 // member variables
31 // NOLINTBEGIN
37 // NOLINTEND
38
39 public:
40 // prevent constructor by default
41 TypeDescriptor& operator=(TypeDescriptor const&);
44
45 public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI ~TypeDescriptor();
49 // NOLINTEND
50
51 public:
52 // destructor thunk
53 // NOLINTBEGIN
54 MCAPI void $dtor();
55 // NOLINTEND
56 };
57
59 public:
60 // member variables
61 // NOLINTBEGIN
64 // NOLINTEND
65
66 public:
67 // prevent constructor by default
68 SetterDescriptor& operator=(SetterDescriptor const&);
71 };
72
74 public:
75 // member variables
76 // NOLINTBEGIN
84 // NOLINTEND
85
86 public:
87 // prevent constructor by default
88 MemberDescriptor& operator=(MemberDescriptor const&);
91
92 public:
93 // member functions
94 // NOLINTBEGIN
96
97 MCAPI ~MemberDescriptor();
98 // NOLINTEND
99
100 public:
101 // constructor thunks
102 // NOLINTBEGIN
104 // NOLINTEND
105
106 public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCAPI void $dtor();
110 // NOLINTEND
111 };
112
114 public:
115 // member variables
116 // NOLINTBEGIN
119 // NOLINTEND
120
121 public:
122 // prevent constructor by default
123 DynamicSetterArg& operator=(DynamicSetterArg const&);
126
127 public:
128 // member functions
129 // NOLINTBEGIN
130 MCAPI ~DynamicSetterArg();
131 // NOLINTEND
132
133 public:
134 // destructor thunk
135 // NOLINTBEGIN
136 MCAPI void $dtor();
137 // NOLINTEND
138 };
139
140 enum class DescriptionMode : int {
141 Brief = 0,
142 Detailed = 1,
143 };
144
145public:
146 // virtual functions
147 // NOLINTBEGIN
148 // vIndex: 0
149 virtual ~BasicSchema() = default;
150
151 // vIndex: 1
152 virtual void members(::cereal::ReflectionCtx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
153
154 // vIndex: 2
155 virtual ::cereal::internal::BasicSchema::MemberDescriptor const* member(::cereal::ReflectionCtx const&, uint) const;
156
157 // vIndex: 3
158 virtual void validateConstraint(
160 ::cereal::Constraint const& constraint,
161 ::entt::meta_any const& any,
163 ) const;
164
165 // vIndex: 4
166 virtual void
167 doLoad(::cereal::SchemaReader&, ::entt::meta_any&, ::entt::meta_any const&, ::cereal::SerializerContext& context)
168 const;
169
170 // vIndex: 5
171 virtual void doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
172
173 // vIndex: 6
174 virtual bool doVerifyInitialization(::cereal::SchemaWriter const&, ::entt::meta_any const&) const;
175
176 // vIndex: 7
177 virtual ::cereal::SchemaDescription
178 makeDescription(::cereal::ReflectionCtx const&, ::cereal::internal::BasicSchema::DescriptionMode) const = 0;
179 // NOLINTEND
180
181public:
182 // member functions
183 // NOLINTBEGIN
184 MCAPI void load(
186 ::entt::meta_any& any,
187 ::entt::meta_any const& udata,
189 ) const;
190 // NOLINTEND
191
192public:
193 // destructor thunk
194 // NOLINTBEGIN
195
196 // NOLINTEND
197
198public:
199 // virtual function thunks
200 // NOLINTBEGIN
201 MCFOLD void $members(::cereal::ReflectionCtx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
202
203 MCFOLD ::cereal::internal::BasicSchema::MemberDescriptor const* $member(::cereal::ReflectionCtx const&, uint) const;
204
205 MCAPI void $validateConstraint(
207 ::cereal::Constraint const& constraint,
208 ::entt::meta_any const& any,
210 ) const;
211
212 MCAPI void
213 $doLoad(::cereal::SchemaReader&, ::entt::meta_any&, ::entt::meta_any const&, ::cereal::SerializerContext& context)
214 const;
215
216 MCAPI void $doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::SerializerContext& context) const;
217
218 MCFOLD 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:10
Definition BasicSchema.h:17
Definition ReflectionCtx.h:11
Definition SchemaReader.h:15
Definition SchemaWriter.h:13
Definition context.h:5
Definition Alias.h:14