#ifndef HASH_FUNC_H #define HASH_FUNC_H #include #include #include #include class hashFunc { protected: std::vector data; int bit; public: hashFunc (std::vector& data, int bit) : data (data), bit (bit) {} ~hashFunc () {} virtual int distance (std::vector& other)=0; virtual bool hash () = 0; std::vector simpleHash (double); }; #endif