MCPcopy Create free account
hub / github.com/apache/trafficserver / operator[]

Method operator[]

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

Source from the content-addressed store, hash-verified

323// indexing
324template <typename Key>
325inline const Node Node::operator[](const Key& key) const {
326 EnsureNodeExists();
327 detail::node* value =
328 static_cast<const detail::node&>(*m_pNode).get(key, m_pMemory);
329 if (!value) {
330 return Node(ZombieNode, key_to_string(key));
331 }
332 return Node(*value, m_pMemory);
333}
334
335template <typename Key>
336inline Node Node::operator[](const Key& key) {

Callers

nothing calls this directly

Calls 5

key_to_stringFunction · 0.85
EnsureNodeExistsMethod · 0.80
NodeClass · 0.70
getMethod · 0.45
mergeMethod · 0.45

Tested by

no test coverage detected