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 SchemaDescription; }
15namespace cereal { struct SchemaReader; }
16namespace cereal { struct SchemaWriter; }
17namespace cereal::internal { class BasicSchema; }
18namespace cereal::util::internal { struct StringViewHash; }
19// clang-format on
20
21namespace cereal::internal {
22// functions
23// NOLINTBEGIN
24MCNAPI void derefAndLoad(
27 ::entt::meta_any& any,
28 ::entt::meta_any const& udata,
30);
31
32MCNAPI void derefAndSave(
35 ::entt::meta_any const& any,
37);
38
39MCNAPI void fillEnumDescription(
40 ::entt::meta_ctx const& ctx,
42 ::entt::meta_type const& type,
43 ::cereal::internal::BasicSchema::DescriptionMode mode
44);
45
46MCNAPI ::cereal::internal::ReflectedType getReflectedType(::entt::meta_type const& type);
47
48MCNAPI ::std::string_view getSchemaNameOrAssert(::entt::meta_ctx const& ctx, ::entt::type_info const& info);
49
50MCNAPI ::entt::
51 dense_map<::std::string, ::entt::meta_any, ::cereal::util::internal::StringViewHash, ::std::equal_to<void>>*
52 getUserProperties(::entt::meta_data const& data);
53
54MCNAPI ::entt::
55 dense_map<::std::string, ::entt::meta_any, ::cereal::util::internal::StringViewHash, ::std::equal_to<void>>*
56 getUserProperties(::entt::meta_type const& type);
57
58MCNAPI void loadEnumValue(
59 ::entt::meta_type const& type,
61 ::entt::meta_any& any,
63);
64
65MCNAPI ::cereal::internal::BasicSchema const* lookup(::entt::meta_ctx const& ctx, ::entt::type_info info);
66
67MCNAPI void overrideCheck(::entt::meta_type type, uint currentMetaData, ::cereal::internal::SchemaTraits traits);
68
69MCNAPI ::std::unordered_map<::std::string, ::cereal::DynamicValue> pickUserProperties(
70 ::entt::meta_ctx const& ctx,
71 ::entt::dense_map<
72 ::std::string,
73 ::entt::meta_any,
75 ::std::equal_to<void>> const& userProps
76);
77
78MCNAPI void saveEnumValue(
79 ::entt::meta_any const& enumValue,
80 ::entt::meta_type const& type,
83);
84
85MCNAPI ::std::string toString(double d);
86// NOLINTEND
87
88} // namespace cereal::internal
Definition SerializerContext.h:11
Definition BasicSchema.h:19
Definition SchemaDescription.h:20
Definition SchemaReader.h:10
Definition SchemaWriter.h:12
Definition StringViewHash.h:7
Definition context.h:5
Definition ctx.h:5