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

Method EnsureNodeExists

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

Source from the content-addressed store, hash-verified

56inline Node::~Node() = default;
57
58inline void Node::EnsureNodeExists() const {
59 if (!m_isValid)
60 throw InvalidNode(m_invalidKey);
61 if (!m_pNode) {
62 m_pMemory.reset(new detail::memory_holder);
63 m_pNode = &m_pMemory->create_node();
64 m_pNode->set_null();
65 }
66}
67
68inline bool Node::IsDefined() const {
69 if (!m_isValid) {

Callers 6

AssignDataMethod · 0.80
AssignNodeMethod · 0.80
push_backMethod · 0.80
operator[]Method · 0.80
removeMethod · 0.80
impl.hFile · 0.80

Calls 3

InvalidNodeFunction · 0.85
resetMethod · 0.45
set_nullMethod · 0.45

Tested by

no test coverage detected