OpenMS
Loading...
Searching...
No Matches
hash< OpenMS::PeptideIdentification > Struct Reference

Hash function for OpenMS::PeptideIdentification. More...

#include <OpenMS/METADATA/PeptideIdentification.h>

Public Member Functions

std::size_t operator() (const OpenMS::PeptideIdentification &pi) const noexcept
 

Detailed Description

Hash function for OpenMS::PeptideIdentification.

Computes a hash consistent with operator==, which compares:

  • MetaInfoInterface (all meta values)
  • id_ (string identifier)
  • hits_ (vector of PeptideHit)
  • getSignificanceThreshold() (stored as meta value)
  • score_type_ (string)
  • higher_score_better_ (bool)
  • getExperimentLabel() (stored as meta value)
  • getBaseName() (stored as meta value)
  • mz_ (double, with NaN handling)
  • rt_ (double, with NaN handling)
Note
Hash is consistent with operator==.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::PeptideIdentification pi) const
inlinenoexcept