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 Constraint; }
12namespace cereal { class SerializerContext; }
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 SaveState; }
19// clang-format on
20
21namespace cereal::internal {
22
24public:
25 // BasicSchema inner types declare
26 // clang-format off
27 struct DynamicSetterArg;
28 struct MemberDescriptor;
29 struct SetterDescriptor;
30 struct TypeDescriptor;
31 // clang-format on
32
33 // BasicSchema inner types define
35 public:
36 // member variables
37 // NOLINTBEGIN
43 // NOLINTEND
44
45 public:
46 // prevent constructor by default
47 TypeDescriptor& operator=(TypeDescriptor const&);
50
51 public:
52 // member functions
53 // NOLINTBEGIN
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62 };
63
65 public:
66 // member variables
67 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
74 SetterDescriptor& operator=(SetterDescriptor const&);
77 };
78
80 public:
81 // member variables
82 // NOLINTBEGIN
92 // NOLINTEND
93
94 public:
95 // prevent constructor by default
96 MemberDescriptor& operator=(MemberDescriptor const&);
99
100 public:
101 // member functions
102 // NOLINTBEGIN
104
106 // NOLINTEND
107
108 public:
109 // constructor thunks
110 // NOLINTBEGIN
112 // NOLINTEND
113
114 public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCNAPI void $dtor();
118 // NOLINTEND
119 };
120
122 public:
123 // member variables
124 // NOLINTBEGIN
127 // NOLINTEND
128
129 public:
130 // prevent constructor by default
131 DynamicSetterArg& operator=(DynamicSetterArg const&);
134
135 public:
136 // member functions
137 // NOLINTBEGIN
139 // NOLINTEND
140
141 public:
142 // destructor thunk
143 // NOLINTBEGIN
144 MCNAPI void $dtor();
145 // NOLINTEND
146 };
147
148 enum class DescriptionMode : int {
149 Brief = 0,
150 Detailed = 1,
151 };
152
153public:
154 // virtual functions
155 // NOLINTBEGIN
156 // vIndex: 0
157 virtual ~BasicSchema() = default;
158
159 // vIndex: 1
160 virtual bool isGreedy(::entt::meta_ctx const&) const;
161
162 // vIndex: 2
163 virtual void members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
164
165 // vIndex: 3
166 virtual ::cereal::internal::BasicSchema::MemberDescriptor const* member(::entt::meta_ctx const&, uint) const;
167
168 // vIndex: 4
169 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const&) const;
170
171 // vIndex: 5
172 virtual void validateConstraint(
173 ::cereal::Constraint const& constraint,
174 ::entt::meta_any const& any,
176 ) const;
177
178 // vIndex: 6
179 virtual void doLoad(
181 ::entt::meta_any&,
182 ::entt::meta_any const&,
184 ) const;
185
186 // vIndex: 7
187 virtual void
188 doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::internal::SaveState const& state) const;
189
190 // vIndex: 8
191 virtual ::cereal::SchemaDescription
192 makeDescription(::entt::meta_ctx const&, ::cereal::internal::BasicSchema::DescriptionMode) const = 0;
193 // NOLINTEND
194
195public:
196 // member functions
197 // NOLINTBEGIN
198 MCNAPI void load(
200 ::entt::meta_any& any,
201 ::entt::meta_any const& udata,
203 ) const;
204 // NOLINTEND
205
206public:
207 // virtual function thunks
208 // NOLINTBEGIN
209 MCNAPI bool $isGreedy(::entt::meta_ctx const&) const;
210
211 MCNAPI void $members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
212
213 MCNAPI ::cereal::internal::BasicSchema::MemberDescriptor const* $member(::entt::meta_ctx const&, uint) const;
214
215 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const&) const;
216
218 ::cereal::Constraint const& constraint,
219 ::entt::meta_any const& any,
221 ) const;
222
223 MCNAPI void
224 $doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::internal::SaveState const& state) const;
225 // NOLINTEND
226};
227
228} // namespace cereal::internal
Definition Constraint.h:13
Definition SerializerContext.h:11
Definition BasicSchema.h:23
MCAPI void $validateConstraint(::cereal::Constraint const &constraint, ::entt::meta_any const &any, ::cereal::SerializerContext &context) const
MCAPI void load(::cereal::SchemaReader &value, ::entt::meta_any &any, ::entt::meta_any const &udata, ::cereal::internal::LoadState const &state) const
MCAPI::cereal::internal::BasicSchema::MemberDescriptor const * $member(::entt::meta_ctx const &, uint) const
MCAPI::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const &) const
MCAPI void $members(::entt::meta_ctx const &, ::std::function< void(uint, ::entt::meta_data)>) const
MCAPI bool $isGreedy(::entt::meta_ctx const &) const
MCAPI void $doSave(::cereal::SchemaWriter &, ::entt::meta_any const &, ::cereal::internal::SaveState const &state) const
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 SaveState.h:7
Definition context.h:5
Definition Alias.h:14