diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/yson_pull/reader.cpp | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yson_pull/reader.cpp')
-rw-r--r-- | library/cpp/yson_pull/reader.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/yson_pull/reader.cpp b/library/cpp/yson_pull/reader.cpp index 655ab8e4ad..ea26852756 100644 --- a/library/cpp/yson_pull/reader.cpp +++ b/library/cpp/yson_pull/reader.cpp @@ -1,27 +1,27 @@ -#include "reader.h" +#include "reader.h" #include <library/cpp/yson_pull/detail/reader.h> - -using namespace NYsonPull; - -TReader::TReader( - THolder<NInput::IStream> stream, + +using namespace NYsonPull; + +TReader::TReader( + THolder<NInput::IStream> stream, EStreamType mode) - : Stream_{std::move(stream)} - , Impl_{MakeHolder<NDetail::reader_impl>(*Stream_, mode)} { + : Stream_{std::move(stream)} + , Impl_{MakeHolder<NDetail::reader_impl>(*Stream_, mode)} { } - + TReader::TReader(TReader&& other) noexcept - : Stream_{std::move(other.Stream_)} - , Impl_{std::move(other.Impl_)} { + : Stream_{std::move(other.Stream_)} + , Impl_{std::move(other.Impl_)} { } - + TReader::~TReader() { } - -const TEvent& TReader::NextEvent() { - return Impl_->next_event(); -} - -const TEvent& TReader::LastEvent() const noexcept { - return Impl_->last_event(); -} + +const TEvent& TReader::NextEvent() { + return Impl_->next_event(); +} + +const TEvent& TReader::LastEvent() const noexcept { + return Impl_->last_event(); +} |