LeviLamina
Loading...
Searching...
No Matches
LevelStorageWriteBatch.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/threading/Mutex.h"
7#include "mc/world/level/storage/db_helpers/Category.h"
8
9// auto generated forward declare list
10// clang-format off
11class LevelStorage;
12// clang-format on
13
15public:
16 // LevelStorageWriteBatch inner types declare
17 // clang-format off
18 struct BatchEntry;
19 class PerfContext;
20 // clang-format on
21
22 // LevelStorageWriteBatch inner types define
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, uint64> mOperation;
28 ::ll::TypedStorage<8, 8, uint64> mSize;
29 ::ll::TypedStorage<8, 32, ::std::string> mKey;
30 ::ll::TypedStorage<8, 8, char const*> mReason;
31 // NOLINTEND
32 };
33
34 struct BatchEntry {
35 public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::std::string>> mLatestValue;
39 ::ll::TypedStorage<1, 1, bool> mDeleted;
40 ::ll::TypedStorage<4, 4, ::DBHelpers::Category> mCategory;
41 // NOLINTEND
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ~BatchEntry();
47 // NOLINTEND
48
49 public:
50 // destructor thunk
51 // NOLINTBEGIN
52 MCFOLD void $dtor();
53 // NOLINTEND
54 };
55
56 using BatchContainerType = ::std::map<::std::string, ::LevelStorageWriteBatch::BatchEntry>;
57
58 using iterator = ::std::_Tree_iterator<::std::_Tree_val<
59 ::std::_Tree_simple_types<::std::pair<::std::string const, ::LevelStorageWriteBatch::BatchEntry>>>>;
60
61 using const_iterator = ::std::_Tree_const_iterator<::std::_Tree_val<
62 ::std::_Tree_simple_types<::std::pair<::std::string const, ::LevelStorageWriteBatch::BatchEntry>>>>;
63
64public:
65 // member variables
66 // NOLINTBEGIN
67 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<void()>>> mFlushCallbacks;
68 ::ll::TypedStorage<8, 16, ::std::map<::std::string, ::LevelStorageWriteBatch::BatchEntry>> mBatch;
69 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mFlushCallbacksMutex;
70 // NOLINTEND
71
72public:
73 // prevent constructor by default
77
78public:
79 // virtual functions
80 // NOLINTBEGIN
81 // vIndex: 0
83
84 // vIndex: 4
85 virtual void putKey(::std::string const& key, ::std::string_view data, ::DBHelpers::Category category);
86
87 // vIndex: 3
88 virtual void putKey(::std::string const& key, ::std::string const& data, ::DBHelpers::Category category);
89
90 // vIndex: 2
91 virtual void putKey(::std::string const& key, ::std::string&& data, ::DBHelpers::Category category);
92
93 // vIndex: 1
94 virtual void
95 putKey(::std::string const& key, ::std::shared_ptr<::std::string> data, ::DBHelpers::Category category);
96
97 // vIndex: 5
98 virtual void deleteKey(::std::string const& key, ::DBHelpers::Category category);
99
100 // vIndex: 6
101 virtual void flush(::LevelStorage& db);
102 // NOLINTEND
103
104public:
105 // member functions
106 // NOLINTBEGIN
108
109 MCAPI void clear();
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(::LevelStorageWriteBatch&& rhs);
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCAPI void $putKey(::std::string const& key, ::std::string_view data, ::DBHelpers::Category category);
128
129 MCAPI void $putKey(::std::string const& key, ::std::string const& data, ::DBHelpers::Category category);
130
131 MCAPI void $putKey(::std::string const& key, ::std::string&& data, ::DBHelpers::Category category);
132
133 MCAPI void $putKey(::std::string const& key, ::std::shared_ptr<::std::string> data, ::DBHelpers::Category category);
134
135 MCAPI void $deleteKey(::std::string const& key, ::DBHelpers::Category category);
136
137 MCAPI void $flush(::LevelStorage& db);
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition LevelStorageWriteBatch.h:23
Definition LevelStorageWriteBatch.h:14
static MCAPI void ** $vftable()
Definition LevelStorage.h:25
Definition LevelStorageWriteBatch.h:34