libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::PeakIonIsotopeMatch Class Reference

#include <peakionisotopematch.h>

Inheritance diagram for pappso::PeakIonIsotopeMatch:
pappso::PeakIonMatch

Public Member Functions

 PeakIonIsotopeMatch (const DataPoint &peak, const PeptideNaturalIsotopeAverageSp &naturalIsotopeAverageSp, const PeptideFragmentIonSp &ion_sp)
 PeakIonIsotopeMatch (const PeakIonIsotopeMatch &other)
 PeakIonIsotopeMatch (PeakIonIsotopeMatch &&other)
virtual ~PeakIonIsotopeMatch ()
virtual const PeptideNaturalIsotopeAverageSpgetPeptideNaturalIsotopeAverageSp () const
PeakIonIsotopeMatchoperator= (const PeakIonIsotopeMatch &other)
virtual QString toString () const
Public Member Functions inherited from pappso::PeakIonMatch
 PeakIonMatch (const DataPoint &peak, const PeptideFragmentIonSp &ion_sp, unsigned int charge)
 PeakIonMatch (const PeakIonMatch &other)
 PeakIonMatch (PeakIonMatch &&other)
virtual ~PeakIonMatch ()
PeakIonMatchoperator= (const PeakIonMatch &other)
virtual const PeptideFragmentIonSpgetPeptideFragmentIonSp () const
const DataPointgetPeak () const
unsigned int getCharge () const
Enums::PeptideIon getPeptideIonType () const
PeptideDirection getPeptideIonDirection () const

Private Attributes

PeptideNaturalIsotopeAverageSp _naturalIsotopeAverageSp

Detailed Description

Definition at line 46 of file peakionisotopematch.h.

Constructor & Destructor Documentation

◆ PeakIonIsotopeMatch() [1/3]

pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch ( const DataPoint & peak,
const PeptideNaturalIsotopeAverageSp & naturalIsotopeAverageSp,
const PeptideFragmentIonSp & ion_sp )

Definition at line 59 of file peakionisotopematch.cpp.

63 : PeakIonMatch(peak, ion_sp, naturalIsotopeAverageSp.get()->getCharge()),
64 _naturalIsotopeAverageSp(naturalIsotopeAverageSp)
65{
66 qDebug();
67}
PeptideNaturalIsotopeAverageSp _naturalIsotopeAverageSp
PeakIonMatch(const DataPoint &peak, const PeptideFragmentIonSp &ion_sp, unsigned int charge)

References pappso::PeakIonMatch::PeakIonMatch(), _naturalIsotopeAverageSp, and pappso::PeakIonMatch::getCharge().

Referenced by PeakIonIsotopeMatch(), PeakIonIsotopeMatch(), and operator=().

◆ PeakIonIsotopeMatch() [2/3]

pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch ( const PeakIonIsotopeMatch & other)

Definition at line 69 of file peakionisotopematch.cpp.

69 : PeakIonMatch(other)
70{
71 _naturalIsotopeAverageSp = other._naturalIsotopeAverageSp;
72}

References PeakIonIsotopeMatch(), pappso::PeakIonMatch::PeakIonMatch(), and _naturalIsotopeAverageSp.

◆ PeakIonIsotopeMatch() [3/3]

pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch ( PeakIonIsotopeMatch && other)

Definition at line 75 of file peakionisotopematch.cpp.

76 : PeakIonMatch(std::move(other))
77{
78 _naturalIsotopeAverageSp = other._naturalIsotopeAverageSp;
79}

References PeakIonIsotopeMatch(), pappso::PeakIonMatch::PeakIonMatch(), and _naturalIsotopeAverageSp.

◆ ~PeakIonIsotopeMatch()

pappso::PeakIonIsotopeMatch::~PeakIonIsotopeMatch ( )
virtual

Definition at line 81 of file peakionisotopematch.cpp.

82{
83}

Member Function Documentation

◆ getPeptideNaturalIsotopeAverageSp()

const PeptideNaturalIsotopeAverageSp & pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp ( ) const
virtual

◆ operator=()

PeakIonIsotopeMatch & pappso::PeakIonIsotopeMatch::operator= ( const PeakIonIsotopeMatch & other)

Definition at line 92 of file peakionisotopematch.cpp.

93{
95 _naturalIsotopeAverageSp = other._naturalIsotopeAverageSp;
96
97 return *this;
98}
PeakIonMatch & operator=(const PeakIonMatch &other)

References PeakIonIsotopeMatch(), _naturalIsotopeAverageSp, and pappso::PeakIonMatch::operator=().

◆ toString()

QString pappso::PeakIonIsotopeMatch::toString ( ) const
virtual

Reimplemented from pappso::PeakIonMatch.

Definition at line 102 of file peakionisotopematch.cpp.

103{
104 return QString("%1isotope%2r%3mz%4")
106 .arg(_naturalIsotopeAverageSp.get()->getIsotopeNumber())
107 .arg(_naturalIsotopeAverageSp.get()->getIsotopeRank())
108 .arg(getPeak().x);
109}
const DataPoint & getPeak() const
virtual QString toString() const

References _naturalIsotopeAverageSp, pappso::PeakIonMatch::getPeak(), pappso::PeakIonMatch::toString(), and pappso::x.

Member Data Documentation

◆ _naturalIsotopeAverageSp

PeptideNaturalIsotopeAverageSp pappso::PeakIonIsotopeMatch::_naturalIsotopeAverageSp
private

The documentation for this class was generated from the following files: