Lines 166-178
inline T Node::as(const S& fallback) const {
Link Here
|
166 |
inline const std::string& Node::Scalar() const { |
166 |
inline const std::string& Node::Scalar() const { |
167 |
if (!m_isValid) |
167 |
if (!m_isValid) |
168 |
throw InvalidNode(m_invalidKey); |
168 |
throw InvalidNode(m_invalidKey); |
169 |
return m_pNode ? m_pNode->scalar() : detail::node_data::empty_scalar(); |
169 |
return m_pNode ? m_pNode->scalar() : detail::node_data::empty_scalar; |
170 |
} |
170 |
} |
171 |
|
171 |
|
172 |
inline const std::string& Node::Tag() const { |
172 |
inline const std::string& Node::Tag() const { |
173 |
if (!m_isValid) |
173 |
if (!m_isValid) |
174 |
throw InvalidNode(m_invalidKey); |
174 |
throw InvalidNode(m_invalidKey); |
175 |
return m_pNode ? m_pNode->tag() : detail::node_data::empty_scalar(); |
175 |
return m_pNode ? m_pNode->tag() : detail::node_data::empty_scalar; |
176 |
} |
176 |
} |
177 |
|
177 |
|
178 |
inline void Node::SetTag(const std::string& tag) { |
178 |
inline void Node::SetTag(const std::string& tag) { |