diff options
author | onpopov <onpopov@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
commit | 84a29dd4980d5b39615e453f289bd1a81213296d (patch) | |
tree | 5e320f10d6b5863e0d5ab1a8caa9eefbdaa5195f /library/cpp/containers/comptrie/write_trie_backwards.h | |
parent | 1717072c6635948128dad7b015a0ec05acbe913b (diff) | |
download | ydb-84a29dd4980d5b39615e453f289bd1a81213296d.tar.gz |
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/write_trie_backwards.h')
-rw-r--r-- | library/cpp/containers/comptrie/write_trie_backwards.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/containers/comptrie/write_trie_backwards.h b/library/cpp/containers/comptrie/write_trie_backwards.h index 634e6b811a..b398f9607f 100644 --- a/library/cpp/containers/comptrie/write_trie_backwards.h +++ b/library/cpp/containers/comptrie/write_trie_backwards.h @@ -1,23 +1,23 @@ -#pragma once - +#pragma once + #include "minimize.h" #include <util/generic/vector.h> -#include <util/stream/output.h> -#include <cstddef> - -namespace NCompactTrie { - class TReverseNodeEnumerator { - public: +#include <util/stream/output.h> +#include <cstddef> + +namespace NCompactTrie { + class TReverseNodeEnumerator { + public: virtual ~TReverseNodeEnumerator() = default; - virtual bool Move() = 0; - virtual size_t GetLeafLength() const = 0; - virtual size_t RecreateNode(char* buffer, size_t resultLength) = 0; - }; - + virtual bool Move() = 0; + virtual size_t GetLeafLength() const = 0; + virtual size_t RecreateNode(char* buffer, size_t resultLength) = 0; + }; + struct TOpaqueTrie; size_t WriteTrieBackwards(IOutputStream& os, TReverseNodeEnumerator& enumerator, bool verbose); size_t WriteTrieBackwardsNoAlloc(IOutputStream& os, TReverseNodeEnumerator& enumerator, TOpaqueTrie& trie, EMinimizeMode mode); - -} + +} |