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

Method findFirst

src/openms/source/DATASTRUCTURES/Param.cpp:1148–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146 }
1147
1148 Param::ParamIterator Param::findFirst(const std::string& leaf) const
1149 {
1150 for (Param::ParamIterator it = this->begin(); it != this->end(); ++it)
1151 {
1152 std::string suffix = ":" + leaf;
1153 if (!(suffix.length() > it.getName().length()) &&
1154 it.getName().compare(it.getName().length() - suffix.length(), suffix.length(), suffix) == 0)
1155 {
1156 return it;
1157 }
1158 }
1159 return this->end();
1160 }
1161
1162 Param::ParamIterator Param::findNext(const std::string& leaf, const ParamIterator& start_leaf) const
1163 {

Callers 2

updateMethod · 0.95
Param_test.cppFile · 0.80

Calls 3

beginMethod · 0.95
endMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected