btllib
Public Member Functions | List of all members
btllib::CountingBloomFilter< T > Class Template Reference

Public Member Functions

 CountingBloomFilter (size_t bytes, unsigned hash_num)
 
 CountingBloomFilter (const std::string &path)
 
void insert (const std::vector< uint64_t > &hashes)
 
void insert (const uint64_t *hashes)
 
contains (const std::vector< uint64_t > &hashes)
 
contains (const uint64_t *hashes)
 
size_t get_bytes () const
 
uint64_t get_pop_cnt () const
 
unsigned get_hash_num () const
 
double get_fpr () const
 
void write (const std::string &path)
 

Member Function Documentation

◆ write()

template<typename T >
void btllib::CountingBloomFilter< T >::write ( const std::string &  path)
inline

Write bloom filter data to a file

Parameters
pathoutput filepath

The documentation for this class was generated from the following file: