1 #ifndef BF_BLOOM_FILTER_BASIC_H
2 #define BF_BLOOM_FILTER_BASIC_H
5 #include <bf/bitvector.h>
6 #include <bf/bloom_filter.h>
27 static size_t m(
double fp,
size_t capacity);
37 static size_t k(
size_t cells,
size_t capacity);
57 bool double_hashing =
true);
64 virtual void add(
object const& o)
override;
65 virtual size_t lookup(
object const& o)
const override;
66 virtual void clear()
override;
73 void remove(
object const& o);