Honeycomb  0.1
Component-Model Framework
Public Member Functions | Public Attributes | List of all members
honey::bloom_filter::Key< T, Alloc > Struct Template Reference

Caches multiple hashes of an object. The key can be inserted into a bloom filter and tested very quickly. More...

#include <BloomFilter.h>

Collaboration diagram for honey::bloom_filter::Key< T, Alloc >:
Collaboration graph
[legend]

Public Member Functions

 Key ()
 
 Key (szt elemCount, Double errorProb=0.01, const Alloc &a=Alloc())
 Same params as bloom filter, key will cache the required number of hashes. More...
 
bool operator== (const Key &rhs) const
 
void hash (const T &obj)
 Generate and cache all the hashes for the object. More...
 

Public Attributes

vector< szt, Alloc > hashes
 
bloom_filter::hash< T > hasher
 

Detailed Description

template<class T, class Alloc = std::allocator<szt>>
struct honey::bloom_filter::Key< T, Alloc >

Caches multiple hashes of an object. The key can be inserted into a bloom filter and tested very quickly.

Constructor & Destructor Documentation

template<class T, class Alloc = std::allocator<szt>>
honey::bloom_filter::Key< T, Alloc >::Key ( )
inline
template<class T, class Alloc = std::allocator<szt>>
honey::bloom_filter::Key< T, Alloc >::Key ( szt  elemCount,
Double  errorProb = 0.01,
const Alloc &  a = Alloc() 
)
inline

Same params as bloom filter, key will cache the required number of hashes.

Member Function Documentation

template<class T, class Alloc = std::allocator<szt>>
void honey::bloom_filter::Key< T, Alloc >::hash ( const T &  obj)
inline

Generate and cache all the hashes for the object.

template<class T, class Alloc = std::allocator<szt>>
bool honey::bloom_filter::Key< T, Alloc >::operator== ( const Key< T, Alloc > &  rhs) const
inline

Member Data Documentation

template<class T, class Alloc = std::allocator<szt>>
bloom_filter::hash<T> honey::bloom_filter::Key< T, Alloc >::hasher
template<class T, class Alloc = std::allocator<szt>>
vector<szt,Alloc> honey::bloom_filter::Key< T, Alloc >::hashes

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