Fennel: RawIntrusiveListMutator Class Reference (original) (raw)
Moves the current node to the back of the list.
This iterator will advance to the original successor on next increment.
Definition at line 95 of file RawIntrusiveList.cpp.
References bJustDeleted, RawIntrusiveList::pBack, pCurr, RawIntrusiveList::pFront, pList, IntrusiveListNode::pNext, and pPrev.
00096 { 00097 assert(pCurr); 00098 if (pList->pBack == pCurr) { 00099 return; 00100 } 00101 if (pPrev) { 00102 pPrev->pNext = pCurr->pNext; 00103 } else { 00104 pList->pFront = pCurr->pNext; 00105 } 00106 pCurr->pNext = NULL; 00107 pList->pBack->pNext = pCurr; 00108 pList->pBack = pCurr; 00109 if (pPrev) { 00110 pCurr = pPrev->pNext; 00111 } else { 00112 pCurr = pList->pFront; 00113 } 00114 bJustDeleted = 1; 00115 }