9 #ifndef CVMFS_GARBAGE_COLLECTION_HASH_FILTER_H_
10 #define CVMFS_GARBAGE_COLLECTION_HASH_FILTER_H_
55 virtual size_t Count()
const = 0;
99 return (uint32_t) *(
reinterpret_cast<const uint32_t *
>(key.
digest) + 1);
127 #endif // CVMFS_GARBAGE_COLLECTION_HASH_FILTER_H_
bool Contains(const shash::Any &hash) const
virtual void Fill(const shash::Any &hash)=0
virtual ~AbstractHashFilter()
bool Contains(const shash::Any &hash) const
assert((mem||(size==0))&&"Out Of Memory")
unsigned char digest[digest_size_]
std::set< shash::Any > hashes_
void Fill(const shash::Any &hash)
virtual bool Contains(const shash::Any &hash) const =0
void Insert(const Key &key, const Value &value)
static uint32_t hasher(const shash::Any &key)
virtual size_t Count() const =0
bool Contains(const Key &key) const
void Init(uint32_t expected_size, Key empty, uint32_t(*hasher)(const Key &key))
SmallHashDynamic< shash::Any, bool > hashmap_
void Fill(const shash::Any &hash)