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

Method insert

lib/yamlcpp/src/node_data.cpp:192–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void node_data::insert(node& key, node& value,
193 const shared_memory_holder& pMemory) {
194 switch (m_type) {
195 case NodeType::Map:
196 break;
197 case NodeType::Undefined:
198 case NodeType::Null:
199 case NodeType::Sequence:
200 convert_to_map(pMemory);
201 break;
202 case NodeType::Scalar:
203 throw BadSubscript(m_mark, key);
204 }
205
206 insert_map_pair(key, value);
207}
208
209// indexing
210node* node_data::get(node& key,

Callers 14

gen_eventsFunction · 0.45
RegisterReferenceMethod · 0.45
memory.cppFile · 0.45
mergeMethod · 0.45
PopMethod · 0.45
operator|=Method · 0.45
getHelpColumnsMethod · 0.45
addMethod · 0.45
listTagsFunction · 0.45
TestGroupMethod · 0.45
makeTestCaseFunction · 0.45

Calls 1

BadSubscriptFunction · 0.85

Tested by 2

gen_eventsFunction · 0.36
TestGroupMethod · 0.36