2 #ifndef __CMDRSChain_H__ 3 #define __CMDRSChain_H__ 58 #define CMDRSCHAIN_ENUMERATE(T, list, function) CMDRSCHAINEDLISTITEM<T> *pCurr = list.pFirst; while (pCurr != NULL) { func(pCurr->Obj); pCurr = pCurr->pNext; } 68 this->pCurrentItem = this->pFirst;
73 while (pCurr->
pNext != NULL)
87 if (this->pFirst == NULL)
90 this->pCurrentItem = this->pCurrentItem->pNext;
92 if (this->pCurrentItem == NULL)
93 this->pCurrentItem = this->pFirst;
CMDRSCHAINEDLISTITEM< T > * pCurrentItem
CMDRSCHAINEDLISTITEM< T > * pFirst
CMDRSCHAINEDLISTITEM * pNext