Lines Matching refs:hash
48 void add(unsigned hash);
49 void remove(unsigned hash);
53 bool mayContain(unsigned hash) const { return firstSlot(hash) && secondSlot(hash); }
60 void add(const String& string) { add(string.impl()->hash()); }
62 void remove(const String& string) { remove(string.impl()->hash()); }
65 bool mayContain(const String& string) const { return mayContain(string.impl()->hash()); }
74 uint8_t& firstSlot(unsigned hash) { return m_table[hash & keyMask]; }
75 uint8_t& secondSlot(unsigned hash) { return m_table[(hash >> 16) & keyMask]; }
76 const uint8_t& firstSlot(unsigned hash) const { return m_table[hash & keyMask]; }
77 const uint8_t& secondSlot(unsigned hash) const { return m_table[(hash >> 16) & keyMask]; }
83 inline void BloomFilter<keyBits>::add(unsigned hash)
85 uint8_t& first = firstSlot(hash);
86 uint8_t& second = secondSlot(hash);
94 inline void BloomFilter<keyBits>::remove(unsigned hash)
96 uint8_t& first = firstSlot(hash);
97 uint8_t& second = secondSlot(hash);