| Return Type | Function name | Arguments |
|---|---|---|
| unsigned int | hdbIdset::Fetch | (hzVect<unsigned int>&,unsigned int,unsigned int,) |
Declared in file: hzDatabase.h
Defined in file : hdbIdset.cpp
Function Logic:
Function body:
unsigned int hdbIdset::Fetch (hzVect<unsigned int>& Result, unsigned int nStart, unsigned int nReq)
{
_hzfunc("hdbIdset::Fetch") ;
hzVect<_idsNode*>* pNodes ;
_idsNode* pNode ;
_idset_seg seg ;
xbufIter zi ;
uint32_t numNodes ;
uint32_t nSofar ;
uint32_t nFound ;
uint32_t n ;
Result.Clear() ;
if (!mx)
return 0;
if (!mx->m_pData)
return 0;
if (nStart >&eq; mx->m_nPop)
return 0;
if (mx->m_bVect)
{
pNodes = (hzVect<_idsNode*>*) mx->m_pData ;
numNodes = pNodes->Count() ;
}
else
{
pNodes = 0;
numNodes = 1;
}
for (n = 0; n < numNodes ; n++)
{
pNode = mx->m_bVect ? pNodes->operator[](n) : (_idsNode*) mx->m_pData ;
zi = pNode->m_Data ;
for (;;)
{
nFound = _readEUI(seg, nSofar, zi) ;
}
}
return Result.Count() ;
}