OpenMS
Loading...
Searching...
No Matches
HashUtils.h File Reference
#include <cstddef>
#include <cstdint>
#include <functional>
#include <string>
#include <type_traits>
Include dependency graph for HashUtils.h:

Go to the source code of this file.

Namespaces

namespace  OpenMS
 Main OpenMS namespace.
 

Functions

std::size_t fnv1a_hash_bytes (const void *data, std::size_t size) noexcept
 Hash utilities for OpenMS classes.
 
std::size_t fnv1a_hash_string (const std::string &s) noexcept
 FNV-1a hash for a string.
 
void hash_combine (std::size_t &seed, std::size_t value) noexcept
 Combine a hash value with additional data using golden ratio mixing.
 
template<typename T >
std::size_t hash_int (T value) noexcept
 Hash for an integer type.
 
std::size_t hash_char (char c) noexcept
 Hash for a character.
 
template<typename T >
std::size_t hash_float (T value) noexcept
 Hash for a floating point type (float or double).