libBf 0.1
|
The spectral Bloom filter with recurring minimum optimization. More...
#include <bloom_filter_spectral.h>
Public Types | |
typedef Core1 | core1_type |
typedef Core2 | core2_type |
Public Member Functions | |
spectral_rm (core1_type &&core1, core2_type &&core2) | |
Create a spectral Bloom filter (RM). | |
template<typename T > | |
void | add (const T &x) |
Add an item to the set. | |
template<typename T > | |
void | remove (const T &x) |
Remove an item from the set. | |
template<typename T > | |
unsigned | count (const T &x) const |
Get the count of an item. | |
void | clear () |
Remove all items from the set. | |
const core1_type & | core1 () const |
Get the first core. | |
const core2_type & | core2 () const |
Get the second core. | |
std::string | to_string () const |
Get a string representation of the Bloom filter. | |
Private Types | |
typedef bloom_filter < spectral_rm< Core1, Core2 > > | base |
Private Attributes | |
core1_type | core1_ |
core2_type | core2_ |
The spectral Bloom filter with recurring minimum optimization.
Definition at line 38 of file bloom_filter_spectral.h.
bf::spectral_rm< Core1, Core2 >::spectral_rm | ( | core1_type && | core1, |
core2_type && | core2 | ||
) | [inline] |
Create a spectral Bloom filter (RM).
core1 | An rvalue reference to the first core. |
core2 | An rvalue reference to the second core. |
Definition at line 48 of file bloom_filter_spectral.h.
void bf::spectral_rm< Core1, Core2 >::add | ( | const T & | x | ) | [inline] |
Add an item to the set.
T | The type of the item to insert. |
x | An instance of type T. |
Reimplemented from bf::bloom_filter< spectral_rm< Core1, Core2 > >.
Definition at line 55 of file bloom_filter_spectral.h.
const core1_type& bf::spectral_rm< Core1, Core2 >::core1 | ( | ) | const [inline] |
Get the first core.
Definition at line 80 of file bloom_filter_spectral.h.
const core2_type& bf::spectral_rm< Core1, Core2 >::core2 | ( | ) | const [inline] |
Get the second core.
Definition at line 87 of file bloom_filter_spectral.h.
unsigned bf::spectral_rm< Core1, Core2 >::count | ( | const T & | x | ) | const [inline] |
Get the count of an item.
T | The type of the item to query. |
x | An instance of type T. |
Reimplemented from bf::bloom_filter< spectral_rm< Core1, Core2 > >.
Definition at line 67 of file bloom_filter_spectral.h.
void bf::spectral_rm< Core1, Core2 >::remove | ( | const T & | x | ) | [inline] |
Remove an item from the set.
T | The type of the item to delete. |
x | An instance of type T. |
Reimplemented from bf::bloom_filter< spectral_rm< Core1, Core2 > >.
Definition at line 61 of file bloom_filter_spectral.h.
std::string bf::spectral_rm< Core1, Core2 >::to_string | ( | ) | const [inline] |
Get a string representation of the Bloom filter.
Reimplemented from bf::bloom_filter< spectral_rm< Core1, Core2 > >.
Definition at line 92 of file bloom_filter_spectral.h.