MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / findEntryRecursive

Method findEntryRecursive

src/openms/source/DATASTRUCTURES/Param.cpp:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 Param::ParamEntry* Param::ParamNode::findEntryRecursive(const std::string& local_name)
286 {
287 ParamNode* parent = findParentOf(local_name);
288 if (parent == nullptr)
289 {
290 return nullptr;
291 }
292
293 EntryIterator it = parent->findEntry(suffix(local_name));
294 if (it == parent->entries.end())
295 {
296 return nullptr;
297 }
298
299 return &(*it);
300 }
301
302 void Param::ParamNode::insert(const ParamNode& node, const std::string& prefix)
303 {

Callers 5

parseCommandLineMethod · 0.80
checkDefaultsMethod · 0.80
existsMethod · 0.80
Param.cppFile · 0.80
Param_test.cppFile · 0.80

Calls 3

findEntryMethod · 0.80
suffixFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected