114 __out
void *
GetData()
const {
return m_pObject; };
118 void SetData(__in
void *p) { m_pObject = p; };
129 CNode *pNode = m_pHead;
131 CNode *pCurrent = pNode;
132 pNode = pNode->
Next();
138 if (m_iUsed < m_iCacheSize) {
139 pNode->SetNext(m_pHead);
148 CNode *pNode = m_pHead;
150 m_pHead = pNode->
Next();
482 #define TRAVERSELIST(list, cursor) \ 483 for ( cursor = (list).GetHeadPosition() \ 485 ; cursor = (list).Next(cursor) \ 492 #define REVERSETRAVERSELIST(list, cursor) \ 493 for ( cursor = (list).GetTailPosition() \ 495 ; cursor = (list).Prev(cursor) \ 506 BOOL bAlert = FALSE) :
508 UNREFERENCED_PARAMETER(bAlert);
509 UNREFERENCED_PARAMETER(bLock);
523 __out_opt OBJECT *
GetHead()
const {
return Get(GetHeadPosition()); }
__out_opt POSITION AddAfterI(__in_opt POSITION p, __in void *pObj)
CNodeCache(INT iCacheSize)
BOOL AddTail(__in CGenericList< OBJECT > *pList)
__out_opt void * RemoveI(__in_opt POSITION p)
__out_opt POSITION AddAfter(__in_opt POSITION p, __in OBJECT *pObj)
__out_opt void * RemoveHeadI()
BOOL AddBefore(__in_opt POSITION p, __in CGenericList< OBJECT > *pList)
BOOL AddAfter(__in_opt POSITION p, __in CGenericList< OBJECT > *pList)
__out_opt POSITION AddBefore(__in_opt POSITION p, __in OBJECT *pObj)
__out void * GetData() const
__out_opt OBJECT * RemoveTail()
__out CNode * Next() const
CGenericList< IUnknown > CBaseInterfaceList
__out OBJECT * GetNext(__inout POSITION &rp) const
BOOL AddBefore(__in_opt POSITION p, __in CBaseList *pList)
__out_opt POSITION Next(__in_opt POSITION pos) const
__out_opt POSITION AddBeforeI(__in_opt POSITION p, __in void *pObj)
__out_opt POSITION GetHeadPosition() const
__out_opt POSITION AddHeadI(__in void *pObj)
__out_opt POSITION FindI(__in void *pObj) const
BOOL MoveToTail(__in_opt POSITION pos, __in CBaseList *pList)
BOOL AddHead(__in CGenericList< OBJECT > *pList)
__out OBJECT * GetValid(__in POSITION p) const
void SetData(__in void *p)
__out_opt OBJECT * Remove(__in_opt POSITION p)
BOOL AddAfter(__in_opt POSITION p, __in CBaseList *pList)
CGenericList(__in_opt LPCTSTR pName, INT iItems, BOOL bLock=TRUE, BOOL bAlert=FALSE)
__out_opt POSITION GetTailPosition() const
__out_opt POSITION GetTailPositionI() const
CGenericList< CBaseObject > CBaseObjectList
__out_opt POSITION GetHeadPositionI() const
__out CNode * Prev() const
__out_opt POSITION Prev(__in_opt POSITION pos) const
__out_opt POSITION AddTail(__in OBJECT *pObj)
__out_opt POSITION Find(__in OBJECT *pObj) const
__out void * GetNextI(__inout POSITION &rp) const
__out_opt OBJECT * RemoveHead()
__out_opt void * RemoveTailI()
__out_opt void * GetI(__in_opt POSITION p) const
BOOL AddTail(__in CBaseList *pList)
__out_opt OBJECT * Get(__in_opt POSITION p) const
BOOL AddHead(__in CBaseList *pList)
__out_opt POSITION AddTailI(__in void *pObj)
void SetPrev(__in_opt CNode *p)
CGenericList(__in_opt LPCTSTR pName)
void SetNext(__in_opt CNode *p)
__out_opt OBJECT * GetHead() const
CNode * RemoveFromCache()
__out_opt POSITION AddHead(__in OBJECT *pObj)
__out void * GetValidI(__in POSITION p) const
void AddToCache(__inout CNode *pNode)
BOOL MoveToHead(__in_opt POSITION pos, __in CBaseList *pList)