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

Method getLabels

src/openms/source/DATASTRUCTURES/Compomer.cpp:275–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273 }
274
275 StringList Compomer::getLabels(const UInt side) const
276 {
277 if (side >= BOTH)
278 {
279 throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Compomer::getLabels() does not support this value for 'side'!", String(side));
280 }
281 StringList tmp;
282
283 for (CompomerSide::const_iterator it = this->cmp_[side].begin(); it != this->cmp_[side].end(); ++it)
284 {
285 if (!it->second.getLabel().empty())
286 {
287 tmp.push_back(it->second.getLabel());
288 }
289 }
290
291 return tmp;
292 }
293
294 /// Adds @p add_side to this compomer.
295 void Compomer::add(const CompomerSide& add_side, UInt side)

Callers

nothing calls this directly

Calls 6

getLabelMethod · 0.80
StringClass · 0.50
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected