Create hash policies through factory.

This commit is contained in:
Matthias Vallentin 2013-06-17 16:26:35 -07:00
parent 85668e7054
commit e6e5f4926f
4 changed files with 15 additions and 6 deletions

View file

@ -42,6 +42,13 @@ private:
*/
class HashPolicy {
public:
/**
* Constructs the hashing policy used by the implementation. This factory
* function exists because the HashingPolicy class hierachy is not yet
* serializable.
*/
static HashPolicy* Create(size_t k, const std::string& name);
typedef Hasher::hash_type hash_type;
typedef std::vector<hash_type> hash_vector;