Skip to content
LeviMC
English
AutoLightDark
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/ContextArea.h"
7#include "mc/deps/cereal/schema/ReflectedType.h"
8#include "mc/platform/brstd/flat_set.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace cereal { class DynamicValue; }
13namespace cereal { struct DescriptionConfig; }
14namespace cereal { struct SchemaDescription; }
15namespace cereal::internal { class BasicSchema; }
16namespace cereal::internal { struct OverrideState; }
17namespace cereal::internal { struct ReflectionContext; }
18namespace cereal::util::internal { struct StringViewHash; }
19// clang-format on
20
21namespace cereal::internal {
22// functions
23// NOLINTBEGIN
24MCNAPI void checkAndOverride(::entt::meta_type const& metaType, uint metaDataId);
25
26MCNAPI void deprecateName(::entt::meta_type const& type, ::std::string_view name);
27
28MCNAPI void fillEnumDescription(
29 ::cereal::internal::ReflectionContext const& ctx,
30 ::cereal::SchemaDescription& ret,
31 ::entt::meta_type const& type,
32 ::cereal::DescriptionConfig config
33);
34
35#ifdef LL_PLAT_S
36MCNAPI bool findAndOverride(
37 ::brstd::flat_set<
38 ::cereal::internal::OverrideState,
39 ::std::less<void>,
40 ::std::vector<::cereal::internal::OverrideState>>& set,
41 ::entt::meta_type const& base,
42 uint overridingTypeId
43);
44#endif
45
46#ifdef LL_PLAT_C
47MCNAPI bool findAndOverride(
48 ::brstd::flat_set<
49 ::cereal::internal::OverrideState,
50 ::std::less<void>,
51 ::std::vector<::cereal::internal::OverrideState>>& set,
52 ::entt::meta_type const& base,
53 uint overridingTypeId
54);
55#endif
56
57MCNAPI ::cereal::internal::ReflectedType
58getReflectedType(::cereal::internal::ReflectionContext const& ctx, ::entt::meta_type const& type);
59
60#ifdef LL_PLAT_S
61MCNAPI void getSchemaDescriptionAndDeps(
62 ::std::vector<::cereal::SchemaDescription>& descriptions,
63 ::std::set<uint>& done,
64 ::cereal::internal::ReflectionContext const& ctx,
65 uint typeId,
66 ::cereal::DescriptionConfig config
67);
68#endif
69
70#ifdef LL_PLAT_C
71MCNAPI void getSchemaDescriptionAndDeps(
72 ::std::vector<::cereal::SchemaDescription>& descriptions,
73 ::std::set<uint>& done,
74 ::cereal::internal::ReflectionContext const& ctx,
75 uint typeId,
76 ::cereal::DescriptionConfig config
77);
78#endif
79
80MCNAPI ::cereal::internal::BasicSchema const* lookup(::entt::meta_ctx const& ctx, uint id);
81
82MCNAPI ::std::string makeEnumErrorMsg(::entt::meta_type const& type, ::cereal::ContextArea area);
83
84MCNAPI ::std::map<::std::string, ::cereal::DynamicValue> pickUserProperties(
85 ::cereal::internal::ReflectionContext const& ctx,
86 ::entt::dense_map<
87 ::std::string,
88 ::std::pair<::entt::meta_type (*)(::entt::meta_ctx const&), ::entt::basic_any<16, 8>>,
89 ::cereal::util::internal::StringViewHash,
90 ::std::equal_to<void>> const& userProps
91);
92
93MCNAPI ::std::string toString(double d);
94// NOLINTEND
95
96} // namespace cereal::internal
Definition DynamicValue.h:14
Definition BasicSchema.h:28
Definition DescriptionConfig.h:12
Definition SchemaDescription.h:21
Definition OverrideState.h:10
Definition ReflectionContext.h:10
Definition StringViewHash.h:7