home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CPtrList

CObject
   |
   +--CPtrList

   in AFXCOLL.H

class CPtrList
extends CObject


Inner Classes, Typedefs, and Enums
typedef CPtrList::BASE_ARG_TYPE
          
typedef CPtrList::BASE_TYPE
          
struct CPtrList::CNode
          
 
Field Summary
protected int m_nBlockSize
          
protected int m_nCount
          
protected struct CPlex* m_pBlocks
          
protected CPtrList::CNode* m_pNodeFree
          
protected CPtrList::CNode* m_pNodeHead
          
protected CPtrList::CNode* m_pNodeTail
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CPtrList( int nBlockSize = 10 )
          
~CPtrList()
          
 
Method Summary
 void AddHead( CPtrList* pNewList )
          
 POSITION AddHead( void* newElement )
          
 POSITION AddTail( void* newElement )
          
 void AddTail( CPtrList* pNewList )
          
 POSITION Find( void* searchValue, POSITION startAfter = NULL ) const
          
 POSITION FindIndex( int nIndex ) const
          
protected void FreeNode( CPtrList::CNode* )
          
 void* GetAt( POSITION position ) const
          
 int GetCount() const
          
 void* GetHead() const
          
 POSITION GetHeadPosition() const
          
 void* GetNext( POSITION& rPosition ) const
          
 void* GetPrev( POSITION& rPosition ) const
          
 void* GetTail() const
          
 POSITION GetTailPosition() const
          
 POSITION InsertAfter( POSITION position, void* newElement )
          
 POSITION InsertBefore( POSITION position, void* newElement )
          
 BOOL IsEmpty() const
          
protected CPtrList::CNode* NewNode( CPtrList::CNode*, CPtrList::CNode* )
          
 void RemoveAll()
          
 void RemoveAt( POSITION position )
          
 void* RemoveHead()
          
 void* RemoveTail()
          
 void SetAt( POSITION pos, void* 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 CPtrList::CNode* m_pNodeFree;

m_pNodeHead

protected CPtrList::CNode* m_pNodeHead;

m_pNodeTail

protected CPtrList::CNode* m_pNodeTail;


Constructor Detail

CPtrList

public CPtrList( int nBlockSize = 10 );

~CPtrList

public ~CPtrList();


Method Detail

AddHead

public void AddHead( CPtrList* pNewList );

AddHead

public POSITION AddHead( void* newElement );

AddTail

public POSITION AddTail( void* newElement );

AddTail

public void AddTail( CPtrList* pNewList );

Find

public POSITION Find( void* searchValue, POSITION startAfter = NULL ) const;

FindIndex

public POSITION FindIndex( int nIndex ) const;

FreeNode

protected void FreeNode( CPtrList::CNode* );

GetAt

public void* GetAt( POSITION position ) const;

GetCount

public int GetCount() const;

GetHead

public void* GetHead() const;

GetHeadPosition

public POSITION GetHeadPosition() const;

GetNext

public void* GetNext( POSITION& rPosition ) const;

GetPrev

public void* GetPrev( POSITION& rPosition ) const;

GetTail

public void* GetTail() const;

GetTailPosition

public POSITION GetTailPosition() const;

InsertAfter

public POSITION InsertAfter( POSITION position, void* newElement );

InsertBefore

public POSITION InsertBefore( POSITION position, void* newElement );

IsEmpty

public BOOL IsEmpty() const;

NewNode

protected CPtrList::CNode* NewNode( CPtrList::CNode*, CPtrList::CNode* );

RemoveAll

public void RemoveAll();

RemoveAt

public void RemoveAt( POSITION position );

RemoveHead

public void* RemoveHead();

RemoveTail

public void* RemoveTail();

SetAt

public void SetAt( POSITION pos, void* newElement );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.4.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD