31#ifndef ETL_BLOOM_FILTER_INCLUDED
32#define ETL_BLOOM_FILTER_INCLUDED
48 namespace private_bloom_filter
157 return (100 *
count()) / WIDTH;
165 return flags.count();
175 template <
typename THash>
176 size_t get_hash(parameter_t key)
const
178 size_t hash =
THash()(key);
ETL_CONSTEXPR14 flags< T, MASK > & set() ETL_NOEXCEPT
Set the bits.
Definition flags.h:102
ETL_CONSTEXPR14 flags< T, MASK > & reset() ETL_NOEXCEPT
Reset the bit at the pattern.
Definition flags.h:157
Bitset forward declaration.
Definition bitset_legacy.h:1130
size_t width() const
Returns the width of the Bloom filter.
Definition bloom_filter.h:147
size_t count() const
Returns the number of filter flags set.
Definition bloom_filter.h:163
void clear()
Clears the bloom filter of all entries.
Definition bloom_filter.h:94
bool exists(parameter_t key) const
Definition bloom_filter.h:123
size_t usage() const
Returns the percentage of usage. Range 0 to 100.
Definition bloom_filter.h:155
void add(parameter_t key)
Definition bloom_filter.h:103
Definition bloom_filter.h:77
is_same
Definition type_traits_generator.h:1036
bitset_ext
Definition absolute.h:38
pair holds two objects of arbitrary type
Definition utility.h:164
Definition bloom_filter.h:52