Return pointer to the actual in-situ object
| Return Type | Function name | Arguments |
|---|---|---|
| OBJ* | hzVect::InSitu | (uint32_t,) |
Declared and defined in file: hzTmplVect.h
Function Logic:
Function body:
OBJ* hzVect::InSitu (uint32_t nIndex)
{
// Return pointer to the actual in-situ object
_hz_set_bkt<OBJ>* pBuck ;
OBJ* pObj ; // Object pointer
_hz_vn_Dat* pDN ;
int32_t nSlot ;
pDN = base._findDnodeByPos(nSlot, nIndex, false) ;
if (!pDN)
return 0;
pBuck = (_hz_set_bkt<OBJ>*) pDN->m_pElements ;
pObj = (OBJ*) pBuck->m_Keys ;
pObj += nSlot ;
return pObj ;
}