MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / operator==

Method operator==

src/openms/source/FORMAT/InspectInfile.cpp:78–97  ·  view source on GitHub ↗

equality operator

Source from the content-addressed store, hash-verified

76
77 // equality operator
78 bool InspectInfile::operator==(const InspectInfile& inspect_infile) const
79 {
80 if (this != &inspect_infile)
81 {
82 bool equal = true;
83 equal &= (spectra_ == inspect_infile.getSpectra());
84 equal &= (enzyme_ == inspect_infile.getEnzyme());
85 equal &= (modifications_per_peptide_ == inspect_infile.getModificationsPerPeptide());
86 equal &= (blind_ == inspect_infile.getBlind());
87 equal &= (maxptmsize_ == inspect_infile.getMaxPTMsize());
88 equal &= (precursor_mass_tolerance_ == inspect_infile.getPrecursorMassTolerance());
89 equal &= (peak_mass_tolerance_ == inspect_infile.getPeakMassTolerance());
90 equal &= (multicharge_ == inspect_infile.getMulticharge());
91 equal &= (instrument_ == inspect_infile.getInstrument());
92 equal &= (tag_count_ == inspect_infile.getTagCount());
93 equal &= (PTMname_residues_mass_type_ == inspect_infile.getModifications());
94 return equal;
95 }
96 return true;
97 }
98
99 void InspectInfile::store(const String& filename)
100 {

Callers

nothing calls this directly

Calls 9

getEnzymeMethod · 0.80
getBlindMethod · 0.80
getMaxPTMsizeMethod · 0.80
getMultichargeMethod · 0.80
getTagCountMethod · 0.80
getPeakMassToleranceMethod · 0.45
getModificationsMethod · 0.45

Tested by

no test coverage detected