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

Hash function for OpenMS::PeptideHit. More...

#include <OpenMS/METADATA/PeptideHit.h>

Public Member Functions

std::size_t operator() (const OpenMS::PeptideHit &hit) const noexcept
 

Detailed Description

Hash function for OpenMS::PeptideHit.

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

  • MetaInfoInterface (all meta values)
  • sequence_ (AASequence)
  • score_ (double)
  • rank (stored as meta value)
  • charge_ (int)
  • peptide_evidences_ (vector<PeptideEvidence>)
  • fragment_annotations_ (vector<PeakAnnotation>)
Note
Hash is consistent with operator==.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::PeptideHit hit) const
inlinenoexcept