|
MFC Class Library | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
CObject | +--CListin AFXTEMPL.H
CList
Inner Classes, Typedefs, and Enums
structCList::CNode
Field Summary
protected intm_nBlockSize
protected intm_nCount
protected struct CPlex*m_pBlocks
protected CList::CNode*m_pNodeFree
protected CList::CNode*m_pNodeHead
protected CList::CNode*m_pNodeTail
Fields inherited from class CObject
classCObject
Constructor Summary
CList( int nBlockSize = 10 )
~CList()
Method Summary
POSITIONAddHead( ARG_TYPE newElement )
voidAddHead( CList* pNewList )
POSITIONAddTail( ARG_TYPE newElement )
voidAddTail( CList* pNewList )
POSITIONFind( ARG_TYPE searchValue, POSITION startAfter = NULL ) const
POSITIONFindIndex( int nIndex ) const
voidFreeNode( CList::CNode* pNode )
protected voidFreeNode( CList::CNode* )
AFX_INLINE TYPEGetAt( POSITION position ) const
AFX_INLINE intGetCount() const
CList
AFX_INLINE TYPEGetHead() const
AFX_INLINE POSITIONGetHeadPosition() const
AFX_INLINE TYPEGetNext( POSITION& rPosition ) const
AFX_INLINE TYPEGetPrev( POSITION& rPosition ) const
AFX_INLINE TYPEGetTail() const
AFX_INLINE POSITIONGetTailPosition() const
POSITIONInsertAfter( POSITION position, ARG_TYPE newElement )
POSITIONInsertBefore( POSITION position, ARG_TYPE newElement )
AFX_INLINE BOOLIsEmpty() const
protected CList::CNode*NewNode( CList::CNode*, CList::CNode* )
CList< TYPE, ARG_TYPE >::CNode*NewNode( CList::CNode* pPrev, CList::CNode* pNext )
Node helpers
Implementation note: CNode's are stored in CPlex blocks and
chained together.
voidRemoveAll()
voidRemoveAt( POSITION position )
TYPERemoveHead()
TYPERemoveTail()
voidSerialize( CArchive& ar )
AFX_INLINE voidSetAt( POSITION pos, ARG_TYPE newElement )
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
Field Detail
m_nBlockSize
protected int m_nBlockSize;
m_nCount
protected int m_nCount;
m_pBlocks
protected struct CPlex* m_pBlocks;
m_pNodeFree
protected CList::CNode* m_pNodeFree;
m_pNodeHead
protected CList::CNode* m_pNodeHead;
m_pNodeTail
protected CList::CNode* m_pNodeTail;
Constructor Detail
CList
public CList( int nBlockSize = 10 );
~CList
public ~CList();
Method Detail
AddHead
public POSITION AddHead( ARG_TYPE newElement );
AddHead
public void AddHead( CList* pNewList );
AddTail
public POSITION AddTail( ARG_TYPE newElement );
AddTail
public void AddTail( CList* pNewList );
Find
public POSITION Find( ARG_TYPE searchValue, POSITION startAfter = NULL ) const;
FindIndex
public POSITION FindIndex( int nIndex ) const;
FreeNode
void FreeNode( CList::CNode* pNode );
FreeNode
protected void FreeNode( CList::CNode* );
GetAt
public AFX_INLINE TYPE GetAt( POSITION position ) const;
GetCount
public AFX_INLINE int GetCount() const;
GetHead
public AFX_INLINE TYPE GetHead() const;
GetHeadPosition
public AFX_INLINE POSITION GetHeadPosition() const;
GetNext
public AFX_INLINE TYPE GetNext( POSITION& rPosition ) const;
GetPrev
public AFX_INLINE TYPE GetPrev( POSITION& rPosition ) const;
GetTail
public AFX_INLINE TYPE GetTail() const;
GetTailPosition
public AFX_INLINE POSITION GetTailPosition() const;
InsertAfter
public POSITION InsertAfter( POSITION position, ARG_TYPE newElement );
InsertBefore
public POSITION InsertBefore( POSITION position, ARG_TYPE newElement );
IsEmpty
public AFX_INLINE BOOL IsEmpty() const;
NewNode
protected CList::CNode* NewNode( CList::CNode*, CList::CNode* );
NewNode
CList< TYPE, ARG_TYPE >::CNode* NewNode( CList::CNode* pPrev, CList::CNode* pNext );
RemoveAll
public void RemoveAll();
RemoveAt
public void RemoveAt( POSITION position );
RemoveHead
public TYPE RemoveHead();
RemoveTail
public TYPE RemoveTail();
Serialize
public void Serialize( CArchive& ar );
SetAt
public AFX_INLINE void SetAt( POSITION pos, ARG_TYPE newElement );
Overview
Project
Class
Tree
Index
MFC Class Library
CppDoc v2.4.1
FRAMES
NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD