libpappsomspp
Library for mass spectrometry
peakionisotopematch.cpp
Go to the documentation of this file.
1 /*
2  * *******************************************************************************
3  * * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4  * *
5  * * This file is part of MassChroqPRM.
6  * *
7  * * MassChroqPRM is free software: you can redistribute it and/or modify
8  * * it under the terms of the GNU General Public License as published by
9  * * the Free Software Foundation, either version 3 of the License, or
10  * * (at your option) any later version.
11  * *
12  * * MassChroqPRM is distributed in the hope that it will be useful,
13  * * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * * GNU General Public License for more details.
16  * *
17  * * You should have received a copy of the GNU General Public License
18  * * along with MassChroqPRM. If not, see <http://www.gnu.org/licenses/>.
19  * *
20  * * Contributors:
21  * * Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22  * implementation
23  * ******************************************************************************/
24 
25 #include "peakionisotopematch.h"
26 
27 namespace pappso
28 {
29 
31  const DataPoint &peak,
32  const PeptideNaturalIsotopeAverageSp &naturalIsotopeAverageSp,
33  const PeptideFragmentIonSp &ion_sp)
34  : PeakIonMatch(peak, ion_sp, naturalIsotopeAverageSp.get()->getCharge()),
35  _naturalIsotopeAverageSp(naturalIsotopeAverageSp)
36 {
37 }
38 
40  : PeakIonMatch(other),
41  _naturalIsotopeAverageSp(other._naturalIsotopeAverageSp)
42 {
43 }
44 
46 {
47 }
50 {
52 }
53 
54 
57 {
58 
60 
61  return *this;
62 }
63 
64 
65 } // namespace pappso
peakionisotopematch.h
pappso::PeakIonIsotopeMatch::~PeakIonIsotopeMatch
virtual ~PeakIonIsotopeMatch()
Definition: peakionisotopematch.cpp:45
pappso
Definition: aa.cpp:38
pappso::DataPoint
Definition: datapoint.h:20
pappso::PeptideFragmentIonSp
std::shared_ptr< const PeptideFragmentIon > PeptideFragmentIonSp
Definition: peptidefragmention.h:65
pappso::PeakIonIsotopeMatch::_naturalIsotopeAverageSp
PeptideNaturalIsotopeAverageSp _naturalIsotopeAverageSp
Definition: peakionisotopematch.h:53
pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp
virtual const PeptideNaturalIsotopeAverageSp & getPeptideNaturalIsotopeAverageSp() const
Definition: peakionisotopematch.cpp:49
pappso::PeakIonIsotopeMatch::operator=
PeakIonIsotopeMatch & operator=(const PeakIonIsotopeMatch &other)
Definition: peakionisotopematch.cpp:56
pappso::PeakIonIsotopeMatch
Definition: peakionisotopematch.h:36
pappso::PeakIonMatch
Definition: peakionmatch.h:60
pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch
PeakIonIsotopeMatch(const DataPoint &peak, const PeptideNaturalIsotopeAverageSp &naturalIsotopeAverageSp, const PeptideFragmentIonSp &ion_sp)
Definition: peakionisotopematch.cpp:30
pappso::PeptideNaturalIsotopeAverageSp
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp
Definition: peptidenaturalisotopeaverage.h:58