Lines Matching refs:pItem
119 HashItem *pItem = &m_pData[lPos]; in GetObjectAt() local
121 return pItem->IsUsed() ? pItem->GetObject() : NULL; in GetObjectAt()
193 HashItem *pItem = &m_pData[lPos]; in Insert() local
197 if (pItem->IsEmpty()) in Insert()
199 pItem->SetObject(Key, pObject); in Insert()
208 pItem = &m_pData[lPos]; in Insert()
210 if (pItem->IsEmpty()) in Insert()
212 pItem->SetObject(Key, pObject); in Insert()
223 pItem = &m_pData[lPos]; in Insert()
225 while(!pItem->IsEmpty()); in Insert()
227 pItem->SetObject(Key, pObject); in Insert()
242 HashItem *pItem = &m_pData[lPos]; in FindPos() local
244 if (pItem->IsUsed() in FindPos()
245 && !(strcmp( pItem->GetKey(), Key ))) in FindPos()
247 return pItem; in FindPos()
252 if (pItem->IsDeleted() || pItem->IsUsed()) in FindPos()
255 pItem = &m_pData[lPos]; in FindPos()
257 if (pItem->IsUsed() in FindPos()
258 && (!strcmp( pItem->GetKey(), Key))) in FindPos()
260 return pItem; in FindPos()
265 if (pItem->IsDeleted() || pItem->IsUsed()) in FindPos()
275 pItem = &m_pData[lPos]; in FindPos()
277 bFound = pItem->IsUsed() in FindPos()
278 && !( strcmp( pItem->GetKey(), Key )); in FindPos()
280 bEnd = !(n<m_lSize || pItem->IsFree()); in FindPos()
284 return bFound ? pItem : NULL; in FindPos()
300 HashItem *pItem = FindPos(Key); in Find() local
302 if (pItem != NULL in Find()
303 && ( !strcmp( pItem->GetKey(), Key ))) in Find()
304 return pItem->GetObject(); in Find()
318 HashItem *pItem = FindPos(Key); in Delete() local
320 if (pItem != NULL in Delete()
321 && ( !strcmp( pItem->GetKey(), Key ))) in Delete()
323 void* pObject = pItem->GetObject(); in Delete()
328 pItem->Delete(); in Delete()
375 HashItem *pItem = &pOldData[i]; in SmartGrow() local
377 if (pItem->IsUsed()) in SmartGrow()
378 Insert(pItem->GetKey(),pItem->GetObject()); in SmartGrow()