Go to the documentation of this file.
33 #include "params/BloomFilterMulti.hh"
39 namespace bloom_filter
43 :
Base(
p), filters(
p.filters)
54 for (
auto& sub_filter :
filters) {
62 auto* cast_other =
static_cast<const Multi*
>(other);
63 assert(
filters.size() == cast_other->filters.size());
65 filters[
i]->merge(cast_other->filters[
i]);
72 for (
auto& sub_filter :
filters) {
73 sub_filter->set(
addr);
80 for (
auto& sub_filter :
filters) {
81 sub_filter->unset(
addr);
89 for (
const auto& sub_filter :
filters) {
90 if (sub_filter->isSet(
addr)) {
101 for (
const auto& sub_filter :
filters) {
111 for (
const auto& sub_filter :
filters) {
112 count += sub_filter->getTotalCount();
bool isSet(Addr addr) const override
Check if the corresponding filter entries of an address should be considered as set.
void set(Addr addr) override
Perform the filter specific function to set the corresponding entries (can be multiple) of an address...
int getTotalCount() const override
Get the total value stored in the filter entries.
Multi(const BloomFilterMultiParams &p)
void merge(const Base *other) override
Merges the contents of both filters into this' (Bloom Filter union).
void unset(Addr addr) override
Perform the filter specific function to clear the corresponding entries (can be multiple) of an addre...
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
void clear() override
Clear the filter by resetting all values.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
const int setThreshold
Threshold at which a filter entry starts being considered as set.
int getCount(Addr addr) const override
Get the value stored in the corresponding filter entry of an address.
This BloomFilter has multiple sub-filters, each with its own hashing functionality.
std::vector< Base * > filters
Sub-filters used by this filter.
Generated on Tue Sep 21 2021 12:24:57 for gem5 by doxygen 1.8.17