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

Hash function for OpenMS::Ribonucleotide. More...

#include <OpenMS/CHEMISTRY/Ribonucleotide.h>

Public Member Functions

std::size_t operator() (const OpenMS::Ribonucleotide &ribo) const noexcept
 

Detailed Description

Hash function for OpenMS::Ribonucleotide.

Computes a hash based on all fields used in operator==: name_, code_, new_code_, html_code_, formula_, origin_, mono_mass_, avg_mass_, term_spec_, and baseloss_formula_.

Note
Hash is consistent with operator==: equal objects produce equal hashes.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::Ribonucleotide ribo) const
inlinenoexcept