gatb.core-API-0.0.0
|
Bloom filter implementation. More...
#include <Bloom.hpp>
Public Member Functions | |
BloomContainer (u_int64_t tai_bloom, size_t nbHash=4) | |
virtual | ~BloomContainer () |
size_t | getNbHash () const |
bool | contains (const Item &item) |
virtual std::bitset< 4 > | contains4 (const Item &item, bool right) |
virtual std::bitset< 8 > | contains8 (const Item &item) |
virtual u_int8_t *& | getArray () |
virtual u_int64_t | getSize () |
virtual u_int64_t | getBitSize () |
virtual std::string | getName () const =0 |
Public Member Functions inherited from IBloom< Item > | |
virtual | ~IBloom () |
virtual unsigned long | weight ()=0 |
Public Member Functions inherited from Container< Item > | |
virtual | ~Container () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Public Member Functions inherited from Bag< Item > | |
virtual void | insert (const Item &item)=0 |
virtual void | insert (const std::vector< Item > &items, size_t length=0) |
virtual void | insert (const Item *items, size_t length) |
virtual void | flush ()=0 |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Bloom filter implementation.
This implementation is an abstract factorization for subclasses. It factorizes a few methods and attributes.
|
inline |
Constructor.
[in] | tai_bloom | : size (in bits) of the bloom filter. |
[in] | nbHash | : number of hash functions to use |
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Implements IBloom< Item >.
Reimplemented in BloomNeighborCoherent< Item >, and BloomCacheCoherent< Item >.
|
inlinevirtual |
Implements IBloom< Item >.
Reimplemented in BloomExtendedNeighborCoherent< Item >, and BloomNeighborCoherent< Item >.
|
inlinevirtual |
Implements IBloom< Item >.
Reimplemented in BloomNeighborCoherent< Item >.
|
inlinevirtual |
Implements IBloom< Item >.
|
inlinevirtual |
Implements IBloom< Item >.
Reimplemented in BloomExtendedNeighborCoherent< Item >, BloomNeighborCoherent< Item >, and BloomCacheCoherent< Item >.
|
pure virtual |
Implements IBloom< Item >.
Implemented in BloomExtendedNeighborCoherent< Item >, BloomNeighborCoherent< Item >, BloomCacheCoherent< Item >, BloomSynchronized< Item >, and Bloom< Item >.
|
inlinevirtual |
Get the number of hash functions used for the Bloom filter.
Implements IBloom< Item >.
|
inlinevirtual |
Implements IBloom< Item >.