Lines Matching refs:pElem
150 StgPage* pElem = new StgPage( this, nPageSize ); in Create() local
151 pElem->nPage = nPg; in Create()
153 memset( pElem->pData, 0, pElem->nData ); in Create()
158 pElem->pNext1 = pCur; in Create()
159 pElem->pLast1 = pCur->pLast1; in Create()
160 pElem->pNext1->pLast1 = in Create()
161 pElem->pLast1->pNext1 = pElem; in Create()
164 pElem->pNext1 = pElem->pLast1 = pElem; in Create()
167 (*(UsrStgPagePtr_Impl*)pLRUCache)[pElem->nPage] = pElem; in Create()
168 pCur = pElem; in Create()
172 pElem1 = pElem->pNext2 = pElem->pLast2 = pElem; in Create()
178 if( pElem->nPage < p->nPage ) in Create()
182 pElem->pNext2 = p; in Create()
183 pElem->pLast2 = p->pLast2; in Create()
184 pElem->pNext2->pLast2 = in Create()
185 pElem->pLast2->pNext2 = pElem; in Create()
187 pElem1 = pElem; in Create()
189 return pElem; in Create()
194 void StgCache::Erase( StgPage* pElem ) in Erase() argument
196 OSL_ENSURE( pElem, "The pointer should not be NULL!" ); in Erase()
197 if ( pElem ) in Erase()
199 OSL_ENSURE( pElem->pNext1 && pElem->pLast1, "The pointers may not be NULL!" ); in Erase()
201 pElem->pNext1->pLast1 = pElem->pLast1; in Erase()
202 pElem->pLast1->pNext1 = pElem->pNext1; in Erase()
203 if( pCur == pElem ) in Erase()
204 pCur = ( pElem->pNext1 == pElem ) ? NULL : pElem->pNext1; in Erase()
206 ((UsrStgPagePtr_Impl*)pLRUCache)->erase( pElem->nPage ); in Erase()
208 pElem->pNext2->pLast2 = pElem->pLast2; in Erase()
209 pElem->pLast2->pNext2 = pElem->pNext2; in Erase()
210 if( pElem1 == pElem ) in Erase()
211 pElem1 = ( pElem->pNext2 == pElem ) ? NULL : pElem->pNext2; in Erase()
212 delete pElem; in Erase()
220 StgPage* pElem = pCur; in Clear() local
223 StgPage* pDelete = pElem; in Clear()
224 pElem = pElem->pNext1; in Clear()
227 while( pCur != pElem ); in Clear()