| 245 | } |
| 246 | |
| 247 | void BaseFeature::updateIDReferences(const IdentificationData::RefTranslator& trans) |
| 248 | { |
| 249 | if (primary_id_ != nullopt) // is feature annotated with a "primary ID"? |
| 250 | { |
| 251 | primary_id_ = trans.translate(*primary_id_); |
| 252 | } |
| 253 | set<IdentificationData::ObservationMatchRef> matches; // refs. to e.g. PSMs |
| 254 | matches.swap(id_matches_); |
| 255 | for (const auto& item : matches) |
| 256 | { |
| 257 | id_matches_.insert(trans.translate(item)); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | } // namespace OpenMS |
no test coverage detected