Wire Sysio Wire Sysion 1.0.0
|
#include <bloom_filter.hpp>
Public Member Functions | |
bloom_filter () | |
bloom_filter (const bloom_parameters &p) | |
bloom_filter (const bloom_filter &filter) | |
bool | operator== (const bloom_filter &f) const |
bool | operator!= (const bloom_filter &f) const |
bloom_filter & | operator= (const bloom_filter &f) |
virtual | ~bloom_filter () |
bool | operator! () const |
void | clear () |
void | insert (const unsigned char *key_begin, const std::size_t &length) |
template<typename T > | |
void | insert (const T &t) |
void | insert (const std::string &key) |
void | insert (const char *data, const std::size_t &length) |
template<typename InputIterator > | |
void | insert (const InputIterator begin, const InputIterator end) |
virtual bool | contains (const unsigned char *key_begin, const std::size_t length) const |
template<typename T > | |
bool | contains (const T &t) const |
bool | contains (const std::string &key) const |
bool | contains (const char *data, const std::size_t &length) const |
template<typename InputIterator > | |
InputIterator | contains_all (const InputIterator begin, const InputIterator end) const |
template<typename InputIterator > | |
InputIterator | contains_none (const InputIterator begin, const InputIterator end) const |
virtual unsigned long long int | size () const |
std::size_t | element_count () const |
double | effective_fpp () const |
bloom_filter & | operator&= (const bloom_filter &f) |
bloom_filter & | operator|= (const bloom_filter &f) |
bloom_filter & | operator^= (const bloom_filter &f) |
const cell_type * | table () const |
std::size_t | hash_count () |
Public Attributes | |
std::vector< bloom_type > | salt_ |
std::vector< unsigned char > | bit_table_ |
unsigned int | salt_count_ |
unsigned long long int | table_size_ |
unsigned long long int | raw_table_size_ |
unsigned long long int | projected_element_count_ |
unsigned int | inserted_element_count_ |
unsigned long long int | random_seed_ |
double | desired_false_positive_probability_ |
Protected Types | |
typedef unsigned int | bloom_type |
typedef unsigned char | cell_type |
Protected Member Functions | |
virtual void | compute_indices (const bloom_type &hash, std::size_t &bit_index, std::size_t &bit) const |
void | generate_unique_salt () |
bloom_type | hash_ap (const unsigned char *begin, std::size_t remaining_length, bloom_type hash) const |
Definition at line 161 of file bloom_filter.hpp.
|
protected |
Definition at line 165 of file bloom_filter.hpp.
|
protected |
Definition at line 166 of file bloom_filter.hpp.
|
inline |
Definition at line 170 of file bloom_filter.hpp.
|
inline |
Definition at line 180 of file bloom_filter.hpp.
|
inline |
Definition at line 196 of file bloom_filter.hpp.
|
inlinevirtual |
Definition at line 243 of file bloom_filter.hpp.
|
inline |
Definition at line 252 of file bloom_filter.hpp.
|
inlineprotectedvirtual |
Definition at line 443 of file bloom_filter.hpp.
|
inline |
Definition at line 323 of file bloom_filter.hpp.
|
inline |
Definition at line 313 of file bloom_filter.hpp.
|
inlinevirtual |
Definition at line 297 of file bloom_filter.hpp.
|
inline |
Definition at line 329 of file bloom_filter.hpp.
|
inline |
Definition at line 344 of file bloom_filter.hpp.
|
inline |
Definition at line 368 of file bloom_filter.hpp.
|
inline |
Definition at line 363 of file bloom_filter.hpp.
|
inlineprotected |
Definition at line 449 of file bloom_filter.hpp.
|
inlineprotected |
Definition at line 526 of file bloom_filter.hpp.
|
inline |
Definition at line 436 of file bloom_filter.hpp.
|
inline |
Definition at line 282 of file bloom_filter.hpp.
|
inline |
|
inline |
Definition at line 271 of file bloom_filter.hpp.
|
inline |
Definition at line 258 of file bloom_filter.hpp.
|
inline |
Definition at line 247 of file bloom_filter.hpp.
|
inline |
Definition at line 220 of file bloom_filter.hpp.
|
inline |
Definition at line 380 of file bloom_filter.hpp.
|
inline |
Definition at line 225 of file bloom_filter.hpp.
|
inline |
Definition at line 201 of file bloom_filter.hpp.
|
inline |
Definition at line 414 of file bloom_filter.hpp.
|
inline |
Definition at line 397 of file bloom_filter.hpp.
|
inlinevirtual |
|
inline |
Definition at line 431 of file bloom_filter.hpp.
std::vector<unsigned char> fc::bloom_filter::bit_table_ |
Definition at line 572 of file bloom_filter.hpp.
double fc::bloom_filter::desired_false_positive_probability_ |
Definition at line 579 of file bloom_filter.hpp.
unsigned int fc::bloom_filter::inserted_element_count_ |
Definition at line 577 of file bloom_filter.hpp.
unsigned long long int fc::bloom_filter::projected_element_count_ |
Definition at line 576 of file bloom_filter.hpp.
unsigned long long int fc::bloom_filter::random_seed_ |
Definition at line 578 of file bloom_filter.hpp.
unsigned long long int fc::bloom_filter::raw_table_size_ |
Definition at line 575 of file bloom_filter.hpp.
std::vector<bloom_type> fc::bloom_filter::salt_ |
Definition at line 571 of file bloom_filter.hpp.
unsigned int fc::bloom_filter::salt_count_ |
Definition at line 573 of file bloom_filter.hpp.
unsigned long long int fc::bloom_filter::table_size_ |
Definition at line 574 of file bloom_filter.hpp.