MCPcopy Create free account
hub / github.com/apache/trafficserver / AssignNode

Method AssignNode

lib/yamlcpp/include/yaml-cpp/node/impl.h:254–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254inline void Node::AssignNode(const Node& rhs) {
255 if (!m_isValid)
256 throw InvalidNode(m_invalidKey);
257 rhs.EnsureNodeExists();
258
259 if (!m_pNode) {
260 m_pNode = rhs.m_pNode;
261 m_pMemory = rhs.m_pMemory;
262 return;
263 }
264
265 m_pNode->set_ref(*rhs.m_pNode);
266 m_pMemory->merge(*rhs.m_pMemory);
267 m_pNode = rhs.m_pNode;
268}
269
270// size/iterator
271inline std::size_t Node::size() const {

Callers

nothing calls this directly

Calls 4

InvalidNodeFunction · 0.85
EnsureNodeExistsMethod · 0.80
set_refMethod · 0.80
mergeMethod · 0.45

Tested by

no test coverage detected