| Return Type | Function name | Arguments |
|---|---|---|
| KEY& | hzSet::operator[] | (KEY&,) |
Declared and defined in file: hzTmplSet.h
Function Logic:
Function body:
KEY& hzSet::operator[] (KEY& key)
{
_hzfunc("hzSet::operator[]") ;
_hz_set_bkt<KEY>* pBuck ;
_hz_vn_Dat* pDN ;
int32_t nSlot ;
pDN = base._findDnodeByKey(nSlot, &key, HZ_ISAMSRCH_LO) ;
if (!pDN)
{
m_Default = m_Null ;
return m_Default ;
}
pBuck = (_hz_set_bkt<KEY>*) pDN->m_pElements ;
return pBuck->m_Keys[nSlot] ;
}