gatb.core-API-1.3.0
BloomFactory Class Reference

Factory that creates IBloom instances. More...

#include <Bloom.hpp>

Public Member Functions

template<typename T >
IBloom< T > * createBloom (tools::misc::BloomKind kind, u_int64_t tai_bloom, size_t nbHash, size_t kmersize)
 
template<typename T >
IBloom< T > * createBloom (const std::string &name, const std::string &sizeStr, const std::string &nbHashStr, const std::string &kmerSizeStr)
 

Static Public Member Functions

static BloomFactorysingleton ()
 

Detailed Description

Factory that creates IBloom instances.

Member Function Documentation

IBloom<T>* createBloom ( tools::misc::BloomKind  kind,
u_int64_t  tai_bloom,
size_t  nbHash,
size_t  kmersize 
)
inline

Create a IBloom instance

Parameters
[in]kind: kind of the IBloom instance to be created
[in]tai_bloom: size of the Bloom filter (in bits)
[in]nbHash: number of hash functions for the Bloom filter
[in]kmersize: kmer size (used only for some implementations).
IBloom<T>* createBloom ( const std::string &  name,
const std::string &  sizeStr,
const std::string &  nbHashStr,
const std::string &  kmerSizeStr 
)
inline

Create a IBloom instance

Parameters
[in]name: kind name of the IBloom instance to be created
[in]sizeStr: size of the Bloom filter (in bits) as a string
[in]nbHashStr: number of hash functions for the Bloom filter as a string
[in]kmerSizeStr: kmer size (used only for some implementations) as a string.
static BloomFactory& singleton ( )
inlinestatic

Singleton method

Returns
the singleton.

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