Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MetaVisitor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cereal { struct ReflectionCtx; }
11// clang-format on
12
13namespace cereal {
14
16public:
17 // MetaVisitor inner types define
18 using VisitorData = ::std::shared_ptr<void>;
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::cereal::ReflectionCtx const>> mCtx;
24 // NOLINTEND
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~MetaVisitor();
30
31 virtual void log(::std::string msg) = 0;
32
33 virtual bool hasErrors() const = 0;
34
35 virtual void onSequenceContainer(uint64 index, ::std::function<bool()> cb) = 0;
36
37 virtual void onAssociativeContainer(::std::string_view key, ::std::function<bool()> cb) = 0;
38
39 virtual void onAssociativeContainer(uint64 index, ::std::function<bool()> cb) = 0;
40
41 virtual void onSetter(::std::function<bool()> cb) = 0;
42
43 virtual void onMetaType(
44 ::entt::meta_any from,
45 ::entt::meta_any to,
46 ::std::function<bool()> setters,
47 ::std::function<void()> members,
48 ::std::shared_ptr<void> const& visitorData
49 ) = 0;
50
51 virtual bool onMetaData(
52 ::std::string_view key,
53 uint id,
54 ::entt::meta_data sourceData,
55 ::entt::meta_data targetData,
56 ::entt::meta_any from,
57 ::entt::meta_any to,
58 bool isDestinationOverridden,
59 ::std::function<void(::entt::meta_data, ::entt::meta_any&, ::entt::meta_data, ::entt::meta_any&)> cb,
60 ::std::shared_ptr<void> const& visitorData
61 ) = 0;
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
76
77} // namespace cereal
Definition MetaVisitor.h:15
static MCAPI void ** $vftable()
MCAPI void $dtor()
Definition ReflectionCtx.h:11