Lines Matching refs:Key

66     void SetObject(const char * Key, void *pObject)  in SetObject()  argument
67 …{ m_Tag = TAG_USED; delete [] m_Key; m_Key = new char[ strlen( Key ) + 1 ]; strcpy( m_Key, Key ); … in SetObject()
128 unsigned long HashTable::Hash(const char *Key) const in Hash()
136 for (i=0,n=strlen( Key ); i<n; i++) in Hash()
138 h = (h<<4) + (unsigned long)(unsigned short)Key[i]; in Hash()
151 unsigned long HashTable::DHash(const char* Key, unsigned long lOldHash) const in DHash() argument
156 for (i=0,n=strlen( Key ); i<n; i++) in DHash()
159 lHash += (unsigned long)(unsigned short)Key[i]; in DHash()
177 bool HashTable::Insert(const char * Key, void* pObject) in Insert() argument
189 if (FindPos(Key) != NULL ) in Insert()
192 unsigned long lPos = Hash(Key); in Insert()
199 pItem->SetObject(Key, pObject); in Insert()
207 lPos = DHash(Key,lPos); in Insert()
212 pItem->SetObject(Key, pObject); in Insert()
227 pItem->SetObject(Key, pObject); in Insert()
232 HashItem* HashTable::FindPos(const char * Key) const in FindPos()
241 unsigned long lPos = Hash(Key); in FindPos()
245 && !(strcmp( pItem->GetKey(), Key ))) in FindPos()
254 lPos = DHash(Key,lPos); in FindPos()
258 && (!strcmp( pItem->GetKey(), Key))) in FindPos()
278 && !( strcmp( pItem->GetKey(), Key )); in FindPos()
293 void* HashTable::Find(const char *Key) const in Find()
300 HashItem *pItem = FindPos(Key); in Find()
303 && ( !strcmp( pItem->GetKey(), Key ))) in Find()
309 void* HashTable::Delete( const char * Key) in Delete() argument
318 HashItem *pItem = FindPos(Key); in Delete()
321 && ( !strcmp( pItem->GetKey(), Key ))) in Delete()