Purpose: Delete an object/key combination
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbIndexEnum::Delete | (uint32_t,hzAtom&,) |
Declared in file: hzDatabase.h
Defined in file : hdbIndex.cpp
Function Logic:
Function body:
hzEcode hdbIndexEnum::Delete (uint32_t objId)hzAtom& Key,
{
// Purpose: Delete an object/key combination
//
// Arguments: 1) objId The object id (row number)
// 2) Key The key
//
// Returns: E_RANGE If the supplied value is beyond the supported range of enum values.
// E_OK If the operation was successful.
hzIntset* pS ; // Applicable bitmap to delete object id from
uint32_t val ; // Enum value from supplied atom
hzEcode rc = E_OK ; // Return code
val = (uint32_t) Key ;
if (val <&eq; 0|| val > m_Maps.Count())
return E_RANGE ;
pS = m_Maps[val] ;
pS->Delete(objId) ;
// if (!pS->Count())
// m_Maps.Delete(K) ;
return rc ;
}