Go to the documentation of this file.
29 #ifndef __BASE_FILTERS_PERFECT_BLOOM_FILTER_HH__
30 #define __BASE_FILTERS_PERFECT_BLOOM_FILTER_HH__
32 #include <unordered_set>
36 struct BloomFilterPerfectParams;
46 Perfect(
const BloomFilterPerfectParams*
p);
49 void clear()
override;
64 #endif // __BASE_FILTERS_PERFECT_BLOOM_FILTER_HH__
void merge(const Base *other) override
Merges the contents of both filters into this' (Bloom Filter union).
void set(Addr addr) override
Perform the filter specific function to set the corresponding entries (can be multiple) of an address...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::unordered_set< Addr > entries
Container storing all set (seen) entries.
Perfect(const BloomFilterPerfectParams *p)
void clear() override
Clear the filter by resetting all values.
int getTotalCount() const override
Get the total value stored in the filter entries.
int getCount(Addr addr) const override
Get the value stored in the corresponding filter entry of an address.
void unset(Addr addr) override
Perform the filter specific function to clear the corresponding entries (can be multiple) of an addre...
A perfect bloom filter with no false positives nor false negatives.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17