| 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 | { |
no test coverage detected