Purpose: Deterermine if the supplied test id, exists within the idset
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzIntset::operator[] | (uint32_t,) |
Declared in file: hzIntset.h
Defined in file : hzIntset.cpp
Function Logic:
Function body:
bool hzIntset::operator[] (uint32_t nId)
{
// Purpose: Deterermine if the supplied test id, exists within the idset
//
// Argument: The test id
//
// Returns: True if the test id exists within the idset, false otherwise
_hzfunc("hzIntset::operator[]") ;
_idsNode* pNode ; // Target node
uint32_t range ; // Target segment number
if (!mx)
return false ;
range = nId / IDSET_SEGSIZE ;
pNode = _findNode(nId) ;
if (!pNode)
return false ;
return pNode->IsSet(nId) ;
}