aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson/node/node.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/yson/node/node.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson/node/node.cpp')
-rw-r--r--library/cpp/yson/node/node.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/library/cpp/yson/node/node.cpp b/library/cpp/yson/node/node.cpp
index b39e070718..c5933fa943 100644
--- a/library/cpp/yson/node/node.cpp
+++ b/library/cpp/yson/node/node.cpp
@@ -7,7 +7,7 @@
#include <util/generic/overloaded.h>
namespace NYT {
-
+
////////////////////////////////////////////////////////////////////////////////
bool TNode::TNull::operator==(const TNull&) const {
@@ -346,51 +346,51 @@ TNode::TMapType& TNode::AsMap()
return std::get<TMapType>(Value_);
}
-const TString& TNode::UncheckedAsString() const noexcept
-{
+const TString& TNode::UncheckedAsString() const noexcept
+{
return std::get<TString>(Value_);
-}
-
-i64 TNode::UncheckedAsInt64() const noexcept
-{
+}
+
+i64 TNode::UncheckedAsInt64() const noexcept
+{
return std::get<i64>(Value_);
-}
-
-ui64 TNode::UncheckedAsUint64() const noexcept
-{
+}
+
+ui64 TNode::UncheckedAsUint64() const noexcept
+{
return std::get<ui64>(Value_);
-}
-
-double TNode::UncheckedAsDouble() const noexcept
-{
+}
+
+double TNode::UncheckedAsDouble() const noexcept
+{
return std::get<double>(Value_);
-}
-
-bool TNode::UncheckedAsBool() const noexcept
-{
+}
+
+bool TNode::UncheckedAsBool() const noexcept
+{
return std::get<bool>(Value_);
-}
-
+}
+
const TNode::TListType& TNode::UncheckedAsList() const noexcept
-{
+{
return std::get<TListType>(Value_);
-}
-
+}
+
const TNode::TMapType& TNode::UncheckedAsMap() const noexcept
-{
+{
return std::get<TMapType>(Value_);
-}
-
+}
+
TNode::TListType& TNode::UncheckedAsList() noexcept
-{
+{
return std::get<TListType>(Value_);
-}
-
+}
+
TNode::TMapType& TNode::UncheckedAsMap() noexcept
-{
+{
return std::get<TMapType>(Value_);
-}
-
+}
+
TNode TNode::CreateList()
{
TNode node;
@@ -850,12 +850,12 @@ void TNode::CreateAttributes()
Attributes_->Value_ = TMapType();
}
-void TNode::Save(IOutputStream* out) const
+void TNode::Save(IOutputStream* out) const
{
NodeToYsonStream(*this, out, NYson::EYsonFormat::Binary);
}
-void TNode::Load(IInputStream* in)
+void TNode::Load(IInputStream* in)
{
Clear();
*this = NodeFromYsonStream(in, ::NYson::EYsonType::Node);