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 SerializerContext; }
12namespace cereal { struct SchemaDescription; }
13namespace cereal { struct SchemaReader; }
14namespace cereal { struct SchemaWriter; }
15namespace cereal::internal { struct DescriptionConfig; }
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
34 struct DynamicSetterArg {
35 public:
36 // member variables
37 // NOLINTBEGIN
40 // NOLINTEND
41
42 public:
43 // prevent constructor by default
44 DynamicSetterArg& operator=(DynamicSetterArg const&);
45 DynamicSetterArg(DynamicSetterArg const&);
46 DynamicSetterArg();
47
48 public:
49 // member functions
50 // NOLINTBEGIN
52 // NOLINTEND
53
54 public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCNAPI void $dtor();
58 // NOLINTEND
59 };
60
61 struct MemberDescriptor {
62 public:
63 // member variables
64 // NOLINTBEGIN
76 // NOLINTEND
77
78 public:
79 // prevent constructor by default
80 MemberDescriptor& operator=(MemberDescriptor const&);
81 MemberDescriptor(MemberDescriptor const&);
82 MemberDescriptor();
83
84 public:
85 // member functions
86 // NOLINTBEGIN
88
90 // NOLINTEND
91
92 public:
93 // constructor thunks
94 // NOLINTBEGIN
96 // NOLINTEND
97
98 public:
99 // destructor thunk
100 // NOLINTBEGIN
101 MCNAPI void $dtor();
102 // NOLINTEND
103 };
104
105 struct SetterDescriptor {
106 public:
107 // member variables
108 // NOLINTBEGIN
111 // NOLINTEND
112
113 public:
114 // prevent constructor by default
115 SetterDescriptor& operator=(SetterDescriptor const&);
116 SetterDescriptor(SetterDescriptor const&);
117 SetterDescriptor();
118 };
119
120 struct TypeDescriptor {
121 public:
122 // member variables
123 // NOLINTBEGIN
129 // NOLINTEND
130
131 public:
132 // prevent constructor by default
133 TypeDescriptor& operator=(TypeDescriptor const&);
134 TypeDescriptor(TypeDescriptor const&);
135 TypeDescriptor();
136
137 public:
138 // member functions
139 // NOLINTBEGIN
141 // NOLINTEND
142
143 public:
144 // destructor thunk
145 // NOLINTBEGIN
146 MCNAPI void $dtor();
147 // NOLINTEND
148 };
149
150public:
151 // virtual functions
152 // NOLINTBEGIN
153 virtual ~BasicSchema() = default;
154
155 virtual bool isGreedy(::entt::meta_ctx const&) const;
156
157 virtual ::cereal::internal::VariantPriorityLevel minVariantPriorityLevel(::entt::meta_ctx const&) const;
158
159 virtual void doLoad(
161 ::entt::meta_any&,
162 ::entt::meta_any const&,
164 ) const;
165
166 virtual void doSave(::cereal::SchemaWriter&, ::entt::meta_any const&, ::cereal::internal::SaveState const&) const;
167
168 virtual ::cereal::SchemaDescription
169 makeDescription(::entt::meta_ctx const&, ::cereal::internal::DescriptionConfig) const = 0;
170 // NOLINTEND
171
172public:
173 // member functions
174 // NOLINTBEGIN
175 MCNAPI void load(
177 ::entt::meta_any& any,
178 ::entt::meta_any const& udata,
180 ) const;
181 // NOLINTEND
182
183public:
184 // virtual function thunks
185 // NOLINTBEGIN
186 MCNAPI bool $isGreedy(::entt::meta_ctx const&) const;
187
188 MCNAPI ::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const&) const;
189
190
191 // NOLINTEND
192};
193
194} // namespace cereal::internal
Definition SerializerContext.h:11
Definition BasicSchema.h:23
MCAPI void load(::cereal::SchemaReader &value, ::entt::meta_any &any, ::entt::meta_any const &udata, ::cereal::internal::LoadState const &state) const
MCAPI::cereal::internal::VariantPriorityLevel $minVariantPriorityLevel(::entt::meta_ctx const &) const
MCAPI bool $isGreedy(::entt::meta_ctx const &) const
Definition SchemaDescription.h:20
Definition SchemaReader.h:12
Definition SchemaWriter.h:16
MCAPI MemberDescriptor(::cereal::internal::BasicSchema::MemberDescriptor &&)
MCAPI void * $ctor(::cereal::internal::BasicSchema::MemberDescriptor &&)
Definition DescriptionConfig.h:7
Definition LoadState.h:7
Definition OverrideState.h:7
Definition SaveState.h:7
Definition Alias.h:14