diff options
author | levysotsky <levysotsky@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
commit | 32b231c8474a1ade4bdf776ade6a20341691d9d7 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/yt/yson_string/string.h | |
parent | 57f874ffc2a75047c1c4fea7a9fc86cb0f56ed50 (diff) | |
download | ydb-32b231c8474a1ade4bdf776ade6a20341691d9d7.tar.gz |
Restoring authorship annotation for <levysotsky@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/yson_string/string.h')
-rw-r--r-- | library/cpp/yt/yson_string/string.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/yt/yson_string/string.h b/library/cpp/yt/yson_string/string.h index b25223aa6c..e13af37a6d 100644 --- a/library/cpp/yt/yson_string/string.h +++ b/library/cpp/yt/yson_string/string.h @@ -47,28 +47,28 @@ public: //! Returns type of YSON contained here. The instance must be non-null. EYsonType GetType() const; -protected: +protected: TStringBuf Data_; EYsonType Type_; - bool Null_; -}; - + bool Null_; +}; + //////////////////////////////////////////////////////////////////////////////// //! An owning version of TYsonStringBuf. /*! * Internally captures the data either via TString or a polymorphic ref-counted holder. */ -class TYsonString -{ -public: +class TYsonString +{ +public: //! Constructs a null instance. TYsonString(); - + //! Constructs an instance from TYsonStringBuf. //! Copies the data into a ref-counted payload. - explicit TYsonString(const TYsonStringBuf& ysonStringBuf); - + explicit TYsonString(const TYsonStringBuf& ysonStringBuf); + //! Constructs an instance from TStringBuf. //! Copies the data into a ref-counted payload. explicit TYsonString( @@ -108,7 +108,7 @@ private: { }; using THolder = TRefCountedPtr; - + std::variant<TNullPayload, THolder, TString> Payload_; const char* Begin_; @@ -119,17 +119,17 @@ private: //////////////////////////////////////////////////////////////////////////////// bool operator == (const TYsonString& lhs, const TYsonString& rhs); -bool operator == (const TYsonString& lhs, const TYsonStringBuf& rhs); -bool operator == (const TYsonStringBuf& lhs, const TYsonString& rhs); -bool operator == (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs); - +bool operator == (const TYsonString& lhs, const TYsonStringBuf& rhs); +bool operator == (const TYsonStringBuf& lhs, const TYsonString& rhs); +bool operator == (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs); + bool operator != (const TYsonString& lhs, const TYsonString& rhs); -bool operator != (const TYsonString& lhs, const TYsonStringBuf& rhs); -bool operator != (const TYsonStringBuf& lhs, const TYsonString& rhs); -bool operator != (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs); +bool operator != (const TYsonString& lhs, const TYsonStringBuf& rhs); +bool operator != (const TYsonStringBuf& lhs, const TYsonString& rhs); +bool operator != (const TYsonStringBuf& lhs, const TYsonStringBuf& rhs); TString ToString(const TYsonString& yson); -TString ToString(const TYsonStringBuf& yson); +TString ToString(const TYsonStringBuf& yson); //////////////////////////////////////////////////////////////////////////////// |