mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Create hash policies through factory.
This commit is contained in:
parent
85668e7054
commit
e6e5f4926f
4 changed files with 15 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue