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
93 // NOLINTEND
94
95 public:
96 // prevent constructor by default
97 MemberDescriptor& operator=(MemberDescriptor const&);
100
101 public:
102 // member functions
103 // NOLINTBEGIN
105
107 // NOLINTEND
108
109 public:
110 // constructor thunks
111 // NOLINTBEGIN
113 // NOLINTEND
114
115 public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCNAPI void $dtor();
119 // NOLINTEND
120 };
121
123 public:
124 // member variables
125 // NOLINTBEGIN
128 // NOLINTEND
129
130 public:
131 // prevent constructor by default
132 DynamicSetterArg& operator=(DynamicSetterArg const&);
135
136 public:
137 // member functions
138 // NOLINTBEGIN
140 // NOLINTEND
141
142 public:
143 // destructor thunk
144 // NOLINTBEGIN
145 MCNAPI void $dtor();
146 // NOLINTEND
147 };
148
149 enum class DescriptionMode : int {
150 Brief = 0,
151 Detailed = 1,
152 };
153
154public:
155 // virtual functions
156 // NOLINTBEGIN
157 // vIndex: 0
158 virtual ~BasicSchema() = default;
159
160 // vIndex: 1
161 virtual bool isGreedy(::entt::meta_ctx const&) const;
162
163 // vIndex: 2
164 virtual void members(::entt::meta_ctx const&, ::std::function<void(uint, ::entt::meta_data)>) const;
165
166 // vIndex: 3
167 virtual ::cereal::internal::BasicSchema::MemberDescriptor const* member(::entt::meta_ctx const&, uint) const;
168
169 // vIndex: 4
170 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const&) const;
171
172 // vIndex: 5
173 virtual void validateConstraint(
174 ::cereal::Constraint const& constraint,
175 ::entt::meta_any const& any,
177 ) const;
178
179 // vIndex: 6
180 virtual void doLoad(
182 ::entt::meta_any&,
183 ::entt::meta_any const&,
185 ) const;
186
187 // vIndex: 7
188 virtual void doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::internal::SaveState const&) 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 // NOLINTEND
223};
224
225} // 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
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