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

Method get

lib/yamlcpp/src/node_data.cpp:210–222  ·  view source on GitHub ↗

indexing

Source from the content-addressed store, hash-verified

208
209// indexing
210node* node_data::get(node& key,
211 const shared_memory_holder& /* pMemory */) const {
212 if (m_type != NodeType::Map) {
213 return nullptr;
214 }
215
216 for (const auto& it : m_map) {
217 if (it.first->is(key))
218 return it.second;
219 }
220
221 return nullptr;
222}
223
224node& node_data::get(node& key, const shared_memory_holder& pMemory) {
225 switch (m_type) {

Callers

nothing calls this directly

Calls 1

isMethod · 0.45

Tested by

no test coverage detected