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

Hash function for OpenMS::ChromatogramSettings. More...

#include <OpenMS/METADATA/ChromatogramSettings.h>

Public Member Functions

std::size_t operator() (const OpenMS::ChromatogramSettings &cs) const noexcept
 

Detailed Description

Hash function for OpenMS::ChromatogramSettings.

Hashes all fields used in operator==:

  • MetaInfoInterface (base class - meta values)
  • native_id_ (string)
  • comment_ (string)
  • instrument_settings_ (scan mode, zoom scan, polarity, scan windows, and MetaInfo)
  • acquisition_info_ (method of combination, acquisitions, and MetaInfo)
  • source_file_ (file properties and CVTermList)
  • precursor_ (activation methods, windows, drift time, charge, and Peak1D/CVTermList)
  • product_ (uses std::hash<Product>)
  • data_processing_ (software, actions, completion time for each element)
  • type_ (chromatogram type enum)
Note
This hash implementation hashes the key identifying fields of nested types and includes MetaInfoInterface. Consistent with operator==.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::ChromatogramSettings cs) const
inlinenoexcept