diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
commit | 9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/stream/input.h | |
parent | 8cbc307de0221f84c80c42dcbe07d40727537e2c (diff) | |
download | ydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/input.h')
-rw-r--r-- | util/stream/input.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/input.h b/util/stream/input.h index 4858660457..f0d5807ed2 100644 --- a/util/stream/input.h +++ b/util/stream/input.h @@ -4,7 +4,7 @@ #include <util/generic/noncopyable.h> #include <util/system/defaults.h> -class IOutputStream; +class IOutputStream; /** * @addtogroup Streams_Base @@ -14,15 +14,15 @@ class IOutputStream; /** * Abstract input stream. */ -class IInputStream: public TNonCopyable { +class IInputStream: public TNonCopyable { public: - IInputStream() noexcept; - virtual ~IInputStream(); + IInputStream() noexcept; + virtual ~IInputStream(); - IInputStream(IInputStream&&) noexcept { + IInputStream(IInputStream&&) noexcept { } - IInputStream& operator=(IInputStream&&) noexcept { + IInputStream& operator=(IInputStream&&) noexcept { return *this; } @@ -107,7 +107,7 @@ public: * @param out Output stream to use. * @returns Total number of characters read from the stream. */ - ui64 ReadAll(IOutputStream& out); + ui64 ReadAll(IOutputStream& out); /** * Reads all data from the stream until the first occurrence of '\n'. Also @@ -215,7 +215,7 @@ protected: * this stream. * @throws yexception If IO error occurs. */ - virtual ui64 DoReadAll(IOutputStream& out); + virtual ui64 DoReadAll(IOutputStream& out); }; /** @@ -224,10 +224,10 @@ protected: * @param in Input stream. * @param out Output stream. */ -ui64 TransferData(IInputStream* in, IOutputStream* out); +ui64 TransferData(IInputStream* in, IOutputStream* out); /** - * `operator>>` for `IInputStream` by default delegates to this function. + * `operator>>` for `IInputStream` by default delegates to this function. * * Note that while `operator>>` uses overloading (and thus argument-dependent * lookup), `In` uses template specializations. This makes it possible to @@ -241,10 +241,10 @@ ui64 TransferData(IInputStream* in, IOutputStream* out); * @param in Input stream to read from. * @param[out] value Value to read. * @throws `yexception` on invalid input or end of stream. - * @see Out(IOutputStream&, T&) + * @see Out(IOutputStream&, T&) */ template <typename T> -void In(IInputStream& in, T& value); +void In(IInputStream& in, T& value); /** * Reads a value from the stream. @@ -253,16 +253,16 @@ void In(IInputStream& in, T& value); * @param[out] value Value to read. * @returns Input stream. * @throws `yexception` on invalid input or end of stream. - * @see operator<<(IOutputStream&, T&) + * @see operator<<(IOutputStream&, T&) */ template <typename T> -inline IInputStream& operator>>(IInputStream& in, T& value) { +inline IInputStream& operator>>(IInputStream& in, T& value) { In<T>(in, value); return in; } namespace NPrivate { - IInputStream& StdInStream() noexcept; + IInputStream& StdInStream() noexcept; } /** |