Lines Matching refs:pCur
66 StgAvlNode* pCur = this; in Locate() local
75 while( pCur != NULL ) in Locate()
78 if( pCur->nBalance != 0 ) in Locate()
79 *pPivot = pCur, *pParent = *pPrev; in Locate()
81 *pPrev = pCur; in Locate()
82 nRes = pCur->Compare( pFind ); in Locate()
85 else pCur = ( nRes < 0 ) ? pCur->pLeft : pCur->pRight; in Locate()
97 StgAvlNode* pCur = this; in Adjust() local
101 if( pCur == pNew || !pNew ) in Adjust()
107 *pHeavy = pCur = pRight; in Adjust()
112 *pHeavy = pCur = pLeft; in Adjust()
116 while( pCur != pNew ) in Adjust()
118 nRes = pCur->Compare( pNew ); in Adjust()
122 pCur->nBalance = -1; in Adjust()
123 pCur = pCur->pRight; in Adjust()
128 pCur->nBalance = 1; in Adjust()
129 pCur = pCur->pLeft; in Adjust()
228 StgAvlNode* pCur = *p; in Rem() local
229 short nRes = bPtrs ? short( pCur == pDel ) : short(pCur->Compare( pDel )); in Rem()
233 if( !pCur->pRight ) in Rem()
235 *p = pCur->pLeft; pCur->pLeft = NULL; in Rem()
237 else if( !pCur->pLeft ) in Rem()
239 *p = pCur->pRight; pCur->pRight = NULL; in Rem()
247 StgAvlNode* last = pCur; in Rem()
249 for( l = pCur->pLeft; in Rem()
257 l->pLeft = pCur->pLeft; in Rem()
258 l->pRight = pCur->pRight; in Rem()
261 pCur->pLeft = pCur->pRight = NULL; in Rem()
263 return pCur; in Rem()
268 return Rem( &pCur->pLeft, pDel, bPtrs ); in Rem()
270 return Rem( &pCur->pRight, pDel, bPtrs ); in Rem()