Lines Matching refs:Key
67 void SetObject(String const Key, void *pObject) in SetObject() argument
68 { m_Tag = TAG_USED; m_Key = Key; m_pObject = pObject; } in SetObject()
139 ULONG HashTable::Hash(String const& Key) const in Hash()
160 for (i=0,n=Key.Len(); i<n; i++) in Hash()
162 h = (h<<4) + (ULONG)(USHORT)Key.GetStr()[i]; in Hash()
175 ULONG HashTable::DHash(String const& Key, ULONG lOldHash) const in DHash() argument
180 for (i=0,n=Key.Len(); i<n; i++) in DHash()
183 lHash += (ULONG)(USHORT)Key.GetStr()[i]; in DHash()
211 BOOL HashTable::Insert(String const& Key, void* pObject) in Insert() argument
224 if (FindPos(Key) != NULL ) in Insert()
227 ULONG lPos = Hash(Key); in Insert()
234 pItem->SetObject(Key, pObject); in Insert()
246 lPos = DHash(Key,lPos); in Insert()
251 pItem->SetObject(Key, pObject); in Insert()
274 pItem->SetObject(Key, pObject); in Insert()
279 HashItem* HashTable::FindPos(String const& Key) const in FindPos()
288 ULONG lPos = Hash(Key); in FindPos()
292 && pItem->GetKey() == Key) in FindPos()
301 lPos = DHash(Key,lPos); in FindPos()
305 && pItem->GetKey() == Key) in FindPos()
325 && pItem->GetKey() == Key; in FindPos()
340 void* HashTable::Find(String const& Key) const in Find()
347 HashItem *pItem = FindPos(Key); in Find()
350 && pItem->GetKey() == Key) in Find()
356 void* HashTable::Delete(String const& Key) in Delete() argument
365 HashItem *pItem = FindPos(Key); in Delete()
368 && pItem->GetKey() == Key) in Delete()