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 CPtrArray

CObject
   |
   +--CPtrArray

   in AFXCOLL.H

class CPtrArray
extends CObject


Inner Classes, Typedefs, and Enums
typedef CPtrArray::BASE_ARG_TYPE
          
typedef CPtrArray::BASE_TYPE
          
 
Field Summary
protected int m_nGrowBy
          
protected int m_nMaxSize
          
protected int m_nSize
          
protected void** m_pData
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CPtrArray()
          
~CPtrArray()
          
 
Method Summary
 int Add( void* newElement )
          
 int Append( const CPtrArray& src )
          
 void Copy( const CPtrArray& src )
          
 void*& ElementAt( int nIndex )
          
 void FreeExtra()
          
 void* GetAt( int nIndex ) const
          
 const void** GetData() const
          
 int GetSize() const
          
 int GetUpperBound() const
          
 void InsertAt( int nIndex, void* newElement, int nCount = 1 )
          
 void InsertAt( int nStartIndex, CPtrArray* pNewArray )
          
 void* operator[]( int nIndex ) const
          
 void RemoveAll()
          
 void RemoveAt( int nIndex, int nCount = 1 )
          
 void SetAt( int nIndex, void* newElement )
          
 void SetAtGrow( int nIndex, void* newElement )
          
 void SetSize( int nNewSize, int nGrowBy =-1 )
          
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_nGrowBy

protected int m_nGrowBy;

m_nMaxSize

protected int m_nMaxSize;

m_nSize

protected int m_nSize;

m_pData

protected void** m_pData;


Constructor Detail

CPtrArray

public CPtrArray();

~CPtrArray

public ~CPtrArray();


Method Detail

Add

public int Add( void* newElement );

Append

public int Append( const CPtrArray& src );

Copy

public void Copy( const CPtrArray& src );

ElementAt

public void*& ElementAt( int nIndex );

FreeExtra

public void FreeExtra();

GetAt

public void* GetAt( int nIndex ) const;

GetData

public const void** GetData() const;

GetSize

public int GetSize() const;

GetUpperBound

public int GetUpperBound() const;

InsertAt

public void InsertAt( int nIndex, void* newElement, int nCount = 1 );

InsertAt

public void InsertAt( int nStartIndex, CPtrArray* pNewArray );

operator[]

public void* operator[]( int nIndex ) const;

RemoveAll

public void RemoveAll();

RemoveAt

public void RemoveAt( int nIndex, int nCount = 1 );

SetAt

public void SetAt( int nIndex, void* newElement );

SetAtGrow

public void SetAtGrow( int nIndex, void* newElement );

SetSize

public void SetSize( int nNewSize, int nGrowBy =-1 );

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