LeviLamina
Loading...
Searching...
No Matches
ValueWrapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock::JSONObject {
6
7class ValueWrapper {
8public:
9 // ValueWrapper inner types declare
10 // clang-format off
11 struct NumberInfo;
12 struct StringInfo;
13 // clang-format on
14
15 // ValueWrapper inner types define
16 struct NumberInfo {
17 public:
18 // member variables
19 // NOLINTBEGIN
20 union {
23 };
25 // NOLINTEND
26
27 public:
28 // prevent constructor by default
29 NumberInfo& operator=(NumberInfo const&);
30 NumberInfo(NumberInfo const&);
31 NumberInfo();
32 };
33
34 struct StringInfo {
35 public:
36 // member variables
37 // NOLINTBEGIN
41 // NOLINTEND
42
43 public:
44 // prevent constructor by default
45 StringInfo& operator=(StringInfo const&);
46 StringInfo(StringInfo const&);
47 StringInfo();
48 };
49
50public:
51 // member variables
52 // NOLINTBEGIN
54 union {
60 };
61 // NOLINTEND
62
63public:
64 // prevent constructor by default
65 ValueWrapper& operator=(ValueWrapper const&);
68
69public:
70 // member functions
71 // NOLINTBEGIN
73
74 MCNAPI ::std::function<bool(::Bedrock::JSONObject::ValueWrapper&)> const& getArrayWrapper() const;
75
76 MCNAPI ::std::function<bool(::std::string&, ::Bedrock::JSONObject::ValueWrapper&)> const& getObjectWrapper() const;
77
78 MCNAPI ~ValueWrapper();
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84#ifdef LL_PLAT_C
85 MCNAPI static ::Bedrock::JSONObject::ValueWrapper _createRaw(bool b);
86
87 MCNAPI static ::Bedrock::JSONObject::ValueWrapper _createRaw(int64 n);
88#endif
89
90 MCNAPI static ::Bedrock::JSONObject::ValueWrapper _createRaw(char const* s, uint64 length, bool copy);
91
92 MCNAPI static ::Bedrock::JSONObject::ValueWrapper emptyObject();
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCNAPI void $dtor();
99 // NOLINTEND
100};
101
102} // namespace Bedrock::JSONObject
Definition ValueWrapper.h:7
static MCAPI ::Bedrock::JSONObject::ValueWrapper _createRaw(char const *s, uint64 length, bool copy)
MCAPI ::std::function< bool(::Bedrock::JSONObject::ValueWrapper &)> const & getArrayWrapper() const
MCAPI void _moveConstruct(::Bedrock::JSONObject::ValueWrapper &&other)
MCAPI ::std::function< bool(::std::string &, ::Bedrock::JSONObject::ValueWrapper &)> const & getObjectWrapper() const
static MCAPI ::Bedrock::JSONObject::ValueWrapper emptyObject()
Definition Alias.h:14