1 #ifndef BF_HASH_POLICY_H
2 #define BF_HASH_POLICY_H
11 typedef size_t digest;
14 typedef std::function<digest(object const&)> hash_function;
17 typedef std::function<std::vector<digest>(
object const&)> hasher;
22 constexpr
static size_t max_obj_size = 36;
26 size_t operator()(
object const& o)
const;
38 std::vector<digest> operator()(
object const& o)
const;
41 std::vector<hash_function> fns_;
51 std::vector<digest> operator()(
object const& o)
const;
72 hasher make_hasher(
size_t k,
size_t seed = 0,
bool double_hashing =
false);