kaori
A C++ library for barcode extraction and matching
Loading...
Searching...
No Matches
kaori::CombinationHash< num_variable_ > Class Template Reference

Hash a combination of barcode indices. More...

#include <utils.hpp>

Public Member Functions

std::size_t operator() (const std::array< BarcodeIndex, num_variable_ > &key) const
 

Detailed Description

template<int num_variable_>
class kaori::CombinationHash< num_variable_ >

Hash a combination of barcode indices.

Create a hash from an array representing a combination of barcode indices, usually for use in a std::unordered_map. This involves hashing each individual index and then iteratively applying the Boost hash_combine function.

Template Parameters
num_variable_Number of variable regions, each with their own barcode indices.

Member Function Documentation

◆ operator()()

template<int num_variable_>
std::size_t kaori::CombinationHash< num_variable_ >::operator() ( const std::array< BarcodeIndex, num_variable_ > & key) const
inline
Parameters
keyArray of barcode indices.
Returns
The hash value of key.

The documentation for this class was generated from the following file: