LeviLamina
Loading...
Searching...
No Matches
internal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/BasicSchema.h"
7#include "mc/deps/cereal/schema/ReflectedType.h"
8#include "mc/deps/cereal/schema/SchemaTraits.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace cereal { class DynamicValue; }
13namespace cereal { class SerializerContext; }
14namespace cereal { struct ReflectionCtx; }
15namespace cereal { struct SchemaDescription; }
16namespace cereal { struct SchemaReader; }
17namespace cereal { struct SchemaWriter; }
18namespace cereal::internal { class BasicSchema; }
19namespace cereal::internal { struct UserProperty; }
20namespace cereal::util::internal { struct StringViewHash; }
21// clang-format on
22
23namespace cereal::internal {
24// functions
25// NOLINTBEGIN
26MCAPI void derefAndLoad(
29 ::entt::meta_any& any,
30 ::entt::meta_any const& udata,
32);
33
34MCAPI ::cereal::DynamicValue
35dynamicValueFromProp(::cereal::ReflectionCtx const& ctx, ::cereal::internal::UserProperty const& prop);
36
37MCAPI void fillEnumDescription(
40 ::entt::meta_type const& type,
41 ::cereal::internal::BasicSchema::DescriptionMode mode
42);
43
44MCAPI ::cereal::internal::ReflectedType getReflectedType(::entt::meta_type const& type);
45
46MCAPI ::std::string_view getSchemaName(::cereal::ReflectionCtx const& ctx, ::entt::type_info const& info);
47
48MCAPI ::entt::dense_map<
49 ::std::string,
52 ::std::equal_to<void>>*
53getUserProperties(::entt::meta_data const& data);
54
55MCAPI ::entt::dense_map<
56 ::std::string,
59 ::std::equal_to<void>>*
60getUserProperties(::entt::meta_type const& type);
61
62MCAPI void iterateKeyValueAssociativeContainer(
63 ::cereal::internal::BasicSchema const& keySchema,
64 ::cereal::internal::BasicSchema const& mappedSchema,
66 ::entt::meta_any& any,
67 ::entt::meta_any const& udata,
69);
70
71MCAPI void iterateSequenceContainer(
74 ::entt::meta_any& any,
75 ::entt::meta_any const& udata,
77);
78
79MCAPI void loadEnumValue(
80 ::entt::meta_type const& type,
82 ::entt::meta_any& any,
84);
85
86MCAPI ::cereal::internal::BasicSchema const* lookup(::cereal::ReflectionCtx const& ctx, ::entt::type_info info);
87
88MCAPI void overrideCheck(::entt::meta_type type, uint currentMetaData, ::cereal::internal::SchemaTraits traits);
89
90MCAPI ::std::map<::std::string, ::cereal::DynamicValue> pickUserProperties(
92 ::entt::dense_map<
93 ::std::string,
96 ::std::equal_to<void>> const& userProps
97);
98
99MCAPI void saveEnumValue(
100 ::entt::meta_any const& enumValue,
101 ::entt::meta_type const& type,
104);
105
106MCAPI void saveKeyValueAssociativeContainer(
107 ::entt::meta_any const& any,
108 ::cereal::internal::BasicSchema const& keySchema,
109 ::cereal::internal::BasicSchema const& mappedSchema,
112);
113
114MCAPI void saveSequenceContainer(
117 ::entt::meta_any const& any,
119);
120
121MCAPI ::std::string toString(double d);
122// NOLINTEND
123
124} // namespace cereal::internal
Definition SerializerContext.h:10
Definition BasicSchema.h:17
Definition ReflectionCtx.h:11
Definition SchemaDescription.h:20
Definition SchemaReader.h:15
Definition SchemaWriter.h:13
Definition UserProperty.h:7
Definition StringViewHash.h:7
Definition context.h:5
Definition ctx.h:5