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

Method isSingleAdduct

src/openms/source/DATASTRUCTURES/Compomer.cpp:224–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 bool Compomer::isSingleAdduct(Adduct& a, const UInt side) const
225 {
226 if (side >= BOTH)
227 {
228 throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Compomer::isSimpleAdduct() does not support this value for 'side'!", String(side));
229 }
230 if (cmp_[side].size() != 1)
231 {
232 return false;
233 }
234 if (cmp_[side].count(a.getFormula()) == 0)
235 {
236 return false;
237 }
238 return true;
239 }
240
241 Compomer Compomer::removeAdduct(const Adduct& a) const
242 {

Callers 3

annotate_feature_Method · 0.80
computeMethod · 0.80
Compomer_test.cppFile · 0.80

Calls 4

countMethod · 0.80
StringClass · 0.50
sizeMethod · 0.45
getFormulaMethod · 0.45

Tested by

no test coverage detected