aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie/leaf_skipper.h
diff options
context:
space:
mode:
authoronpopov <onpopov@yandex-team.ru>2022-02-10 16:50:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:38 +0300
commit84a29dd4980d5b39615e453f289bd1a81213296d (patch)
tree5e320f10d6b5863e0d5ab1a8caa9eefbdaa5195f /library/cpp/containers/comptrie/leaf_skipper.h
parent1717072c6635948128dad7b015a0ec05acbe913b (diff)
downloadydb-84a29dd4980d5b39615e453f289bd1a81213296d.tar.gz
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/leaf_skipper.h')
-rw-r--r--library/cpp/containers/comptrie/leaf_skipper.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/containers/comptrie/leaf_skipper.h b/library/cpp/containers/comptrie/leaf_skipper.h
index 3959258948..9218735a2b 100644
--- a/library/cpp/containers/comptrie/leaf_skipper.h
+++ b/library/cpp/containers/comptrie/leaf_skipper.h
@@ -1,6 +1,6 @@
#pragma once
-#include <cstddef>
+#include <cstddef>
namespace NCompactTrie {
class ILeafSkipper {
@@ -23,34 +23,34 @@ namespace NCompactTrie {
size_t SkipLeaf(const char* p) const override {
return Packer->SkipLeaf(p);
}
-
- // For test purposes.
+
+ // For test purposes.
const TPacker* GetPacker() const {
return Packer;
}
};
-
- // The data you need to traverse the trie without unpacking the values.
- struct TOpaqueTrie {
- const char* Data;
- size_t Length;
- const ILeafSkipper& SkipFunction;
-
- TOpaqueTrie(const char* data, size_t dataLength, const ILeafSkipper& skipFunction)
- : Data(data)
- , Length(dataLength)
- , SkipFunction(skipFunction)
+
+ // The data you need to traverse the trie without unpacking the values.
+ struct TOpaqueTrie {
+ const char* Data;
+ size_t Length;
+ const ILeafSkipper& SkipFunction;
+
+ TOpaqueTrie(const char* data, size_t dataLength, const ILeafSkipper& skipFunction)
+ : Data(data)
+ , Length(dataLength)
+ , SkipFunction(skipFunction)
{
}
-
- bool operator==(const TOpaqueTrie& other) const {
- return Data == other.Data &&
+
+ bool operator==(const TOpaqueTrie& other) const {
+ return Data == other.Data &&
Length == other.Length &&
&SkipFunction == &other.SkipFunction;
- }
-
- bool operator!=(const TOpaqueTrie& other) const {
- return !(*this == other);
- }
- };
+ }
+
+ bool operator!=(const TOpaqueTrie& other) const {
+ return !(*this == other);
+ }
+ };
}