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 | 8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie/node.h | |
parent | 84a29dd4980d5b39615e453f289bd1a81213296d (diff) | |
download | ydb-8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8.tar.gz |
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie/node.h')
-rw-r--r-- | library/cpp/containers/comptrie/node.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/containers/comptrie/node.h b/library/cpp/containers/comptrie/node.h index 0f14048982..d6f4317db0 100644 --- a/library/cpp/containers/comptrie/node.h +++ b/library/cpp/containers/comptrie/node.h @@ -1,6 +1,6 @@ -#pragma once +#pragma once -#include <cstddef> +#include <cstddef> namespace NCompactTrie { class ILeafSkipper; @@ -17,18 +17,18 @@ namespace NCompactTrie { direction = static_cast<TDirection>(direction + 1); return direction; } - + inline TDirection& operator--(TDirection& direction) { direction = static_cast<TDirection>(direction - 1); return direction; } - + class TNode { public: TNode(); // Processes epsilon links and sets ForwardOffset to correct value. Assumes an epsilon link doesn't point to an epsilon link. TNode(const char* data, size_t offset, const ILeafSkipper& skipFunction); - + size_t GetOffset() const { return Offset; } @@ -59,7 +59,7 @@ namespace NCompactTrie { char GetLabel() const { return Label; } - + bool IsFinal() const { return GetLeafOffset() != 0; } @@ -73,7 +73,7 @@ namespace NCompactTrie { size_t Offset; size_t LeafLength; size_t CoreLength; - + char Label; }; |