#pragma once
namespace bliss {
class UintSeqHash
{
protected:
unsigned int h;
public:
UintSeqHash() {h = 0; }
UintSeqHash(const UintSeqHash &other) {h = other.h; }
UintSeqHash& operator=(const UintSeqHash &other) {h = other.h; return *this; }
void reset() {h = 0; }
void update(unsigned int n);
unsigned int get_value() const {return h; }
int cmp(const UintSeqHash &other) const {
return (h < other.h)?-1:((h == other.h)?0:1);
}
bool is_lt(const UintSeqHash &other) const {return cmp(other) < 0; }
bool is_le(const UintSeqHash &other) const {return cmp(other) <= 0; }
bool is_equal(const UintSeqHash &other) const {return cmp(other) == 0; }
};
}