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

Hash function for OpenMS::ModificationDefinition. More...

#include <OpenMS/CHEMISTRY/ModificationDefinition.h>

Public Member Functions

std::size_t operator() (const OpenMS::ModificationDefinition &md) const noexcept
 

Detailed Description

Hash function for OpenMS::ModificationDefinition.

Computes a hash based on all fields used in operator==:

  • mod_ pointer (pointer identity, not content)
  • fixed_modification_ (bool)
  • max_occurrences_ (UInt)
Note
Since operator== compares pointer addresses (not dereferencing), this hash uses pointer identity. Hash is consistent within a process but not reproducible across process runs due to address space layout.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::ModificationDefinition md) const
inlinenoexcept