29#ifndef __BASE_FILTERS_PERFECT_BLOOM_FILTER_HH__
30#define __BASE_FILTERS_PERFECT_BLOOM_FILTER_HH__
32#include <unordered_set>
39struct BloomFilterPerfectParams;
50 Perfect(
const BloomFilterPerfectParams &
p);
53 void clear()
override;
Base(const BloomFilterBaseParams &p)
Create and clear the filter.
void unset(Addr addr) override
Perform the filter specific function to clear the corresponding entries (can be multiple) of an addre...
Perfect(const BloomFilterPerfectParams &p)
void clear() override
Clear the filter by resetting all values.
void merge(const Base *other) override
Merges the contents of both filters into this' (Bloom Filter union).
std::unordered_set< Addr > entries
Container storing all set (seen) entries.
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.
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.