2 #ifndef __CMDRSChain_H__ 3 #define __CMDRSChain_H__ 60 #define CMDRSCHAIN_ENUMERATE(T, list, func) CMDRSCHAINEDLISTITEM<T> *pCurr = list.pFirst; while (pCurr != NULL) { func(pCurr->Obj); pCurr = pCurr->pNext; } 70 this->pCurrentItem = this->pFirst;
75 while (pCurr->
pNext != NULL)
89 if (this->pFirst == NULL)
92 this->pCurrentItem = this->pCurrentItem->pNext;
94 if (this->pCurrentItem == NULL)
95 this->pCurrentItem = this->pFirst;
CMDRSCHAINEDLISTITEM< T > * pCurrentItem
CMDRSCHAINEDLISTITEM< T > * pFirst
CMDRSCHAINEDLISTITEM * pNext