|
libboxes
boxes is a set of specialised containers built on top of STL
|
Defines a minimal interface for HashFamily functor. More...
#include <hash_utils.hpp>
Defines a minimal interface for HashFamily functor.
HashFamily is a functor that applies a family of hash functions to a given data chunk. Each hash family functor of type T must implement the following interface:
operator()(std::size_t idx, const uint8_t *data, std::size_t len): updates the ith hash with a new chunk of datafinal(std::size_t i) -> uint64_t: returns the final hash value for the ith hash functionreset(): resets the hash state of all hash functionssize() -> std::size_t: returns the number of hash functions in the family| T | type of the hash family functor |
Definition at line 57 of file hash_utils.hpp.