Return TypeFunction nameArguments
unsigned inthdbIdset::Fetch(hzVect<unsigned int>&,unsigned int,unsigned int,)

Declared in file: hzDatabase.h
Defined in file : hdbIdset.cpp

Function Logic:

0:START 1:hzVect::Clear 2:!mx 3:Return 0 4:!mx->m_pData 5:Return 0 6:nStart>=mx->m_nPop 7:Return 0 8:mx->m_bVect 9:pNodes hzVect::Count numNodes 10:pNodes numNodes n 11:n 12:hzVect::operator[] pNode zi 13:; 14:_readEUI nFound 15:Return Result.Count()

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() ;
}