示例#1
0
 // Equality operator
 bool PeptideIdentification::operator==(const PeptideIdentification & rhs) const
 {
   return MetaInfoInterface::operator==(rhs)
          && id_ == rhs.id_
          && hits_ == rhs.getHits()
          && significance_threshold_ == rhs.getSignificanceThreshold()
          && score_type_ == rhs.score_type_
          && higher_score_better_ == rhs.higher_score_better_;
 }
 // Equality operator
 bool PeptideIdentification::operator==(const PeptideIdentification& rhs) const
 {
   return MetaInfoInterface::operator==(rhs)
          && id_ == rhs.id_
          && (rt_ == rhs.rt_ || (!this->hasRT() && !rhs.hasRT())) // might be NaN, so comparing == will always be false
          && (mz_ == rhs.mz_ || (!this->hasMZ() && !rhs.hasMZ())) // might be NaN, so comparing == will always be false
          && hits_ == rhs.getHits()
          && significance_threshold_ == rhs.getSignificanceThreshold()
          && score_type_ == rhs.score_type_
          && higher_score_better_ == rhs.higher_score_better_
          && base_name_ == rhs.base_name_;
 }