diff options
author | smikler <smikler@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 0e68ae909d3b76a5a001a07880eb0010dec6b2ea (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie/leaf_skipper.h | |
parent | e4f0fd4ab53ca40eb91e750cf3e7f76c21e930db (diff) | |
download | ydb-0e68ae909d3b76a5a001a07880eb0010dec6b2ea.tar.gz |
Restoring authorship annotation for <smikler@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/leaf_skipper.h')
-rw-r--r-- | library/cpp/containers/comptrie/leaf_skipper.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/containers/comptrie/leaf_skipper.h b/library/cpp/containers/comptrie/leaf_skipper.h index bd599ceaa2..3959258948 100644 --- a/library/cpp/containers/comptrie/leaf_skipper.h +++ b/library/cpp/containers/comptrie/leaf_skipper.h @@ -3,32 +3,32 @@ #include <cstddef> namespace NCompactTrie { - class ILeafSkipper { - public: - virtual size_t SkipLeaf(const char* p) const = 0; + class ILeafSkipper { + public: + virtual size_t SkipLeaf(const char* p) const = 0; virtual ~ILeafSkipper() = default; - }; - + }; + template <class TPacker> class TPackerLeafSkipper: public ILeafSkipper { - private: - const TPacker* Packer; - - public: - TPackerLeafSkipper(const TPacker* packer) - : Packer(packer) - { - } - + private: + const TPacker* Packer; + + public: + TPackerLeafSkipper(const TPacker* packer) + : Packer(packer) + { + } + size_t SkipLeaf(const char* p) const override { - return Packer->SkipLeaf(p); - } + return Packer->SkipLeaf(p); + } // For test purposes. const TPacker* GetPacker() const { return Packer; } - }; + }; // The data you need to traverse the trie without unpacking the values. struct TOpaqueTrie { |