LeviLamina
Loading...
Searching...
No Matches
DynamicValue.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/dynamic/NullType.h"
7
8namespace cereal {
9
11public:
12 // DynamicValue inner types define
13 enum class Type : int {
14 Null = 0,
15 Boolean = 1,
16 Integer = 2,
17 Number = 3,
18 String = 4,
19 Array = 5,
20 Object = 6,
21 };
22
23 using Array = ::std::vector<::cereal::DynamicValue>;
24
25 using Bool = bool;
26
27 using Integer = int64;
28
29 using Null = ::cereal::NullType;
30
31 using Number = double;
32
33 using Object = ::std::unordered_map<::std::string, ::cereal::DynamicValue>;
34
35 using String = ::std::string;
36
37 using Variant = ::std::variant<
39 bool,
40 int64,
41 double,
42 ::std::string,
43 ::std::vector<::cereal::DynamicValue>,
44 ::std::unordered_map<::std::string, ::cereal::DynamicValue>>;
45
46public:
47 // member variables
48 // NOLINTBEGIN
49 ::ll::TypedStorage<
50 8,
51 72,
52 ::std::variant<
54 bool,
55 int64,
56 double,
57 ::std::string,
58 ::std::vector<::cereal::DynamicValue>,
59 ::std::unordered_map<::std::string, ::cereal::DynamicValue>>>
60 mValue;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI ::std::vector<::cereal::DynamicValue> const& asArray() const;
67
68 MCAPI ::std::vector<::cereal::DynamicValue>& asArray();
69
70 MCAPI bool const& asBool() const;
71
72 MCAPI int64 const& asInteger() const;
73
74 MCAPI double const& asNumber() const;
75
76 MCAPI ::std::unordered_map<::std::string, ::cereal::DynamicValue> const& asObject() const;
77
78 MCAPI ::std::unordered_map<::std::string, ::cereal::DynamicValue>& asObject();
79
80 MCAPI ::std::string const& asString() const;
81
82#ifdef LL_PLAT_C
83 MCAPI ::std::string& asString();
84
85 MCAPI bool hasMember(::std::string const& member) const;
86#endif
87
88 MCAPI uint64 hash() const;
89
90#ifdef LL_PLAT_C
91 MCAPI ::cereal::DynamicValue const& operator[](::std::string const& member) const;
92
93 MCAPI ::cereal::DynamicValue& operator[](::std::string const& member);
94#endif
95
96 MCAPI ::cereal::DynamicValue::Type type() const;
97 // NOLINTEND
98};
99
100} // namespace cereal
Definition DynamicValue.h:10
Definition NullType.h:7