Lines Matching refs:pBlock

519     PBlock* pBlock = pFirst;  in ~PointerList()  local
520 while ( pBlock ) in ~PointerList()
522 PBlock* pNextBlock = pBlock->pNext; in ~PointerList()
523 delete pBlock; in ~PointerList()
524 pBlock = pNextBlock; in ~PointerList()
542 PBlock* pBlock = pFirst; in Add() local
543 while ( pBlock && (pBlock->nCount == PBLOCKCOUNT) ) in Add()
544 pBlock = pBlock->pNext; in Add()
546 if ( !pBlock ) in Add()
548 pBlock = new PBlock; in Add()
549 memset( pBlock->aData, 0, PBLOCKCOUNT * sizeof( void* ) ); in Add()
550 pBlock->nCount = 0; in Add()
551 pBlock->pPrev = pLast; in Add()
552 pBlock->pNext = NULL; in Add()
553 pLast->pNext = pBlock; in Add()
554 pLast = pBlock; in Add()
558 while ( pBlock->aData[i] ) in Add()
561 pBlock->aData[i] = (void*)p; in Add()
562 pBlock->nCount++; in Add()
573 PBlock* pBlock = pFirst; in Remove() local
574 while ( pBlock ) in Remove()
579 if ( ((sal_uIntPtr)p) == ((sal_uIntPtr)pBlock->aData[i]) ) in Remove()
581 pBlock->aData[i] = NULL; in Remove()
582 pBlock->nCount--; in Remove()
585 if ( !pBlock->nCount ) in Remove()
587 if ( pBlock->pPrev ) in Remove()
588 pBlock->pPrev->pNext = pBlock->pNext; in Remove()
589 if ( pBlock->pNext ) in Remove()
590 pBlock->pNext->pPrev = pBlock->pPrev; in Remove()
591 if ( pBlock == pFirst ) in Remove()
592 pFirst = pBlock->pNext; in Remove()
593 if ( pBlock == pLast ) in Remove()
594 pLast = pBlock->pPrev; in Remove()
595 delete pBlock; in Remove()
603 pBlock = pBlock->pNext; in Remove()
616 PBlock* pBlock = pFirst; in Get() local
618 while ( pBlock ) in Get()
623 if ( pBlock->aData[i] ) in Get()
627 return pBlock->aData[i]; in Get()
633 pBlock = pBlock->pNext; in Get()
646 PBlock* pBlock = pFirst; in IsIn() local
647 while ( pBlock ) in IsIn()
652 if ( ((sal_uIntPtr)p) == ((sal_uIntPtr)pBlock->aData[i]) ) in IsIn()
657 pBlock = pBlock->pNext; in IsIn()