| 23 | ConsensusMap::ConsensusMap() = default; |
| 24 | |
| 25 | ConsensusMap::ConsensusMap(const ConsensusMap& source) : |
| 26 | MetaInfoInterface(source), |
| 27 | RangeManagerContainerType(source), |
| 28 | DocumentIdentifier(source), |
| 29 | ExposedVector<ConsensusFeature>(source), |
| 30 | UniqueIdInterface(source), |
| 31 | UniqueIdIndexer<ConsensusMap>(source), |
| 32 | column_description_(source.column_description_), |
| 33 | experiment_type_(source.experiment_type_), |
| 34 | protein_identifications_(source.protein_identifications_), |
| 35 | unassigned_peptide_identifications_(source.unassigned_peptide_identifications_), |
| 36 | data_processing_(source.data_processing_), |
| 37 | id_data_() // updated below |
| 38 | { |
| 39 | // copy ID data and update references in features: |
| 40 | IdentificationData::RefTranslator trans = id_data_.merge(source.id_data_); |
| 41 | for (ConsensusFeature& feature : *this) |
| 42 | { |
| 43 | feature.updateIDReferences(trans); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | ConsensusMap::ConsensusMap(ConsensusMap&& source) = default; |
| 48 | |