blockfilter: Implement GCSFilter constructors.

This commit is contained in:
Jim Posen
2018-01-23 16:25:21 -08:00
committed by Jim Posen
parent c454f0ac63
commit cf70b55005
3 changed files with 157 additions and 0 deletions

View File

@@ -31,6 +31,11 @@ private:
uint64_t m_F; //!< Range of element hashes, F = N * M
std::vector<unsigned char> m_encoded;
/** Hash a data element to an integer in the range [0, N * M). */
uint64_t HashToRange(const Element& element) const;
std::vector<uint64_t> BuildHashedSet(const ElementSet& elements) const;
public:
/** Constructs an empty filter. */