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

#include <peakionmatch.h>

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

Public Member Functions

 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
virtual QString toString () const

Private Attributes

DataPoint _peak
PeptideFragmentIonSp _ion_sp
unsigned int _charge

Detailed Description

Definition at line 39 of file peakionmatch.h.

Constructor & Destructor Documentation

◆ PeakIonMatch() [1/3]

pappso::PeakIonMatch::PeakIonMatch ( const DataPoint & peak,
const PeptideFragmentIonSp & ion_sp,
unsigned int charge )

◆ PeakIonMatch() [2/3]

pappso::PeakIonMatch::PeakIonMatch ( const PeakIonMatch & other)

Definition at line 42 of file peakionmatch.cpp.

43 : _peak(other._peak), _ion_sp(other._ion_sp), _charge(other._charge)
44{
45}

References PeakIonMatch(), _charge, _ion_sp, and _peak.

◆ PeakIonMatch() [3/3]

pappso::PeakIonMatch::PeakIonMatch ( PeakIonMatch && other)

Definition at line 47 of file peakionmatch.cpp.

48 : _peak(std::move(other._peak)), _ion_sp(other._ion_sp), _charge(std::move(other._charge))
49{
50}

References PeakIonMatch(), _charge, _ion_sp, and _peak.

◆ ~PeakIonMatch()

pappso::PeakIonMatch::~PeakIonMatch ( )
virtual

Definition at line 52 of file peakionmatch.cpp.

53{
54}

Member Function Documentation

◆ getCharge()

unsigned int pappso::PeakIonMatch::getCharge ( ) const

◆ getPeak()

const DataPoint & pappso::PeakIonMatch::getPeak ( ) const

◆ getPeptideFragmentIonSp()

const PeptideFragmentIonSp & pappso::PeakIonMatch::getPeptideFragmentIonSp ( ) const
virtual

Definition at line 68 of file peakionmatch.cpp.

69{
70 return _ion_sp;
71}

References _ion_sp.

Referenced by pappso::PeptideSpectrumMatch::contains(), and pappso::findComplementIonType().

◆ getPeptideIonDirection()

PeptideDirection pappso::PeakIonMatch::getPeptideIonDirection ( ) const

Definition at line 92 of file peakionmatch.cpp.

93{
94 return _ion_sp.get()->getPeptideFragmentSp().get()->getPeptideIonDirection();
95}

References _ion_sp.

◆ getPeptideIonType()

Enums::PeptideIon pappso::PeakIonMatch::getPeptideIonType ( ) const

Definition at line 86 of file peakionmatch.cpp.

87{
88 return _ion_sp.get()->getPeptideIonType();
89}

References _ion_sp.

Referenced by pappso::QCPSpectrum::addPeakIonIsotopeMatch(), and pappso::findComplementIonType().

◆ operator=()

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

Definition at line 58 of file peakionmatch.cpp.

59{
60 _peak = other._peak;
61 _ion_sp = other._ion_sp;
62 _charge = other._charge;
63
64 return *this;
65}

References PeakIonMatch(), _charge, _ion_sp, and _peak.

Referenced by pappso::PeakIonIsotopeMatch::operator=().

◆ toString()

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

Reimplemented in pappso::PeakIonIsotopeMatch.

Definition at line 98 of file peakionmatch.cpp.

99{
100 return QString("%1").arg(_ion_sp.get()->getCompletePeptideIonName(getCharge()));
101}
unsigned int getCharge() const

References _ion_sp, and getCharge().

Referenced by pappso::PeakIonIsotopeMatch::toString().

Member Data Documentation

◆ _charge

unsigned int pappso::PeakIonMatch::_charge
private

Definition at line 66 of file peakionmatch.h.

Referenced by PeakIonMatch(), PeakIonMatch(), PeakIonMatch(), getCharge(), and operator=().

◆ _ion_sp

◆ _peak

DataPoint pappso::PeakIonMatch::_peak
private

Definition at line 64 of file peakionmatch.h.

Referenced by PeakIonMatch(), PeakIonMatch(), PeakIonMatch(), getPeak(), and operator=().


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