diff options
author | dimanne <dimanne@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
commit | 93d66104be406c5b8cdfce7be5546d72d83b547e (patch) | |
tree | 5b4284b97105f480aa2b1ffc564e8f8e5b689df9 /library/cpp/containers | |
parent | b3eef5b52437f05851a3e8fb489a68db0132657b (diff) | |
download | ydb-93d66104be406c5b8cdfce7be5546d72d83b547e.tar.gz |
Restoring authorship annotation for <dimanne@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers')
-rw-r--r-- | library/cpp/containers/comptrie/comptrie_builder.inl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_builder.inl b/library/cpp/containers/comptrie/comptrie_builder.inl index f273fa6571..ebb00a57af 100644 --- a/library/cpp/containers/comptrie/comptrie_builder.inl +++ b/library/cpp/containers/comptrie/comptrie_builder.inl @@ -142,7 +142,7 @@ public: const_iterator Find(char ch) const; void Add(const TBlob& s, TNode* node); - bool IsLast() const override { + bool IsLast() const override { return this->Empty(); } @@ -151,7 +151,7 @@ public: return Find(key, value, result, packer); } - ui64 Measure(const TBuilderImpl* builder) const override { + ui64 Measure(const TBuilderImpl* builder) const override { return MeasureRange(builder, 0, this->size()); } @@ -200,7 +200,7 @@ public: return written; } - void Destroy(TBuilderImpl* builder) override { + void Destroy(TBuilderImpl* builder) override { // Delete all nodes down the stream. for (iterator it = this->begin(); it != this->end(); ++it) { builder->DestroyNode(it->Node); @@ -221,7 +221,7 @@ public: Y_ASSERT(reinterpret_cast<ISubtree*>(this) == static_cast<void*>(this)); // This assumption is used in TNode::Subtree() } - bool IsLast() const override { + bool IsLast() const override { return Buffer.Empty(); } @@ -251,7 +251,7 @@ public: return nullptr; } - ui64 Measure(const TBuilderImpl*) const override { + ui64 Measure(const TBuilderImpl*) const override { return Buffer.Size(); } @@ -287,7 +287,7 @@ public: Y_ASSERT(reinterpret_cast<ISubtree*>(this) == static_cast<void*>(this)); // This assumption is used in TNode::Subtree() } - bool IsLast() const override { + bool IsLast() const override { return Data->Size == 0; } @@ -316,7 +316,7 @@ public: return nullptr; } - ui64 Measure(const TBuilderImpl*) const override { + ui64 Measure(const TBuilderImpl*) const override { return Data->Size; } |