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 | 79b3cf0f1d6edfa0268153eddcb48f3467527461 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers | |
parent | 93d66104be406c5b8cdfce7be5546d72d83b547e (diff) | |
download | ydb-79b3cf0f1d6edfa0268153eddcb48f3467527461.tar.gz |
Restoring authorship annotation for <dimanne@yandex-team.ru>. Commit 2 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 ebb00a57aff..f273fa65710 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; } |