Return TypeFunction nameArguments
hzEcodehzLookup::Insert(const hzString&,const OBJ&,)

Declared and defined in file: hzTmplMapL.h

Function Logic:

0:START 1:_hz_tmpl_ISAM::InsertKeyU pDN 2:pDN 3:pBuck pBuck pBuck 4:Return E_OK 5:Return hzerr(E_CORRUPT,Failed to Insert)

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") ;
   }