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

Method hasSection

src/openms/source/DATASTRUCTURES/Param.cpp:1646–1657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644 }
1645
1646 bool Param::hasSection(const std::string &key) const
1647 {
1648 if (key.back() == ':')
1649 {
1650 // Remove trailing colon from key
1651 return root_.findParentOf(key.substr(0, key.size() - 1)) != nullptr;
1652 }
1653 else
1654 {
1655 return root_.findParentOf(key) != nullptr;
1656 }
1657 }
1658
1659 Param::ParamEntry& Param::getEntry_(const std::string& key) const
1660 {

Callers 4

loadPreferencesMethod · 0.80
savePreferencesMethod · 0.80
showTOPPDialog_Method · 0.80
Param_test.cppFile · 0.80

Calls 4

backMethod · 0.80
findParentOfMethod · 0.80
substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected