libpappsomspp
Library for mass spectrometry
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
 
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 
)

Definition at line 35 of file peakionmatch.cpp.

38  : _peak(peak), _ion_sp(ion_sp), _charge(charge)
39 {
40 }
PeptideFragmentIonSp _ion_sp
Definition: peakionmatch.h:65
unsigned int _charge
Definition: peakionmatch.h:66

◆ 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 }

◆ PeakIonMatch() [3/3]

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

Definition at line 47 of file peakionmatch.cpp.

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

◆ ~PeakIonMatch()

pappso::PeakIonMatch::~PeakIonMatch ( )
virtual

Definition at line 54 of file peakionmatch.cpp.

55 {
56 }

Member Function Documentation

◆ getCharge()

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

Definition at line 82 of file peakionmatch.cpp.

83 {
84  return _charge;
85 }

References _charge.

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

◆ getPeak()

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

◆ getPeptideFragmentIonSp()

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

Definition at line 70 of file peakionmatch.cpp.

71 {
72  return _ion_sp;
73 }

References _ion_sp.

Referenced by pappso::PeptideSpectrumMatch::contains().

◆ getPeptideIonDirection()

PeptideDirection pappso::PeakIonMatch::getPeptideIonDirection ( ) const

Definition at line 94 of file peakionmatch.cpp.

95 {
96  return _ion_sp.get()->getPeptideFragmentSp().get()->getPeptideIonDirection();
97 }

References _ion_sp.

◆ getPeptideIonType()

PeptideIon pappso::PeakIonMatch::getPeptideIonType ( ) const

Definition at line 88 of file peakionmatch.cpp.

89 {
90  return _ion_sp.get()->getPeptideIonType();
91 }

References _ion_sp.

Referenced by pappso::QCPSpectrum::addPeakIonIsotopeMatch().

◆ operator=()

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

Definition at line 60 of file peakionmatch.cpp.

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

References _charge, _ion_sp, and _peak.

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

◆ toString()

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

Reimplemented in pappso::PeakIonIsotopeMatch.

Definition at line 100 of file peakionmatch.cpp.

101 {
102  return QString("%1").arg(
103  _ion_sp.get()->getCompletePeptideIonName(getCharge()));
104 }
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 getCharge(), and operator=().

◆ _ion_sp

PeptideFragmentIonSp pappso::PeakIonMatch::_ion_sp
private

◆ _peak

DataPoint pappso::PeakIonMatch::_peak
private

Definition at line 64 of file peakionmatch.h.

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


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