32 #ifndef __BASE_FILTERS_BLOCK_BLOOM_FILTER_HH__ 33 #define __BASE_FILTERS_BLOCK_BLOOM_FILTER_HH__ 39 struct BloomFilterBlockParams;
50 Block(
const BloomFilterBlockParams*
p);
75 #endif // __BASE_FILTERS_BLOCK_BLOOM_FILTER_HH__
Block(const BloomFilterBlockParams *p)
int hash(Addr addr) const
XOR hash between bitfields of an address, provided by the mask vector.
std::vector< unsigned > masksLSBs
Position of the LSB of each mask.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int getCount(Addr addr) const override
Get the value stored in the corresponding filter entry of an address.
Simple deletable (with false negatives) bloom filter that extracts bitfields of an address to use as ...
void unset(Addr addr) override
Perform the filter specific function to clear the corresponding entries (can be multiple) of an addre...
std::vector< unsigned > masksSizes
Number of bits in each mask.