| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzLookup::Insert | (const hzString&,const OBJ&,) |
Declared and defined in file: hzTmplMapL.h
Function Logic:
Function body:
hzEcode hzLookup::Insert (const hzString& key, const OBJ& obj)
{
_hzfunc("hzMapS::Insert") ;
_hz_map_bkt<hzString,OBJ>* pBuck ;
_hz_vn_Dat* pDN ;
int32_t nSlot ;
pDN = base.InsertKeyU(nSlot, &key) ;
if (pDN)
{
pBuck = (_hz_map_bkt<hzString,OBJ>*) pDN->m_pElements ;
pBuck->m_Keys[nSlot] = key ;
pBuck->m_Objs[nSlot] = obj ;
return E_OK ;
}
return hzerr(E_CORRUPT, "Failed to Insert") ;
}