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 CArray

CObject
   |
   +--CArray

   in AFXTEMPL.H

template < class TYPE , class ARG_TYPE > class CArray
extends CObject

CArray


Field Summary
protected int m_nGrowBy
          
protected int m_nMaxSize
          
protected int m_nSize
          
protected TYPE* m_pData
          
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CArray()
          CArray out-of-line functions
~CArray()
          
 
Method Summary
 AFX_INLINE int Add( ARG_TYPE newElement )
          
 int Append( const CArray& src )
          
 void Copy( const CArray& src )
          
 AFX_INLINE TYPE& ElementAt( int nIndex )
          
 void FreeExtra()
          
 AFX_INLINE TYPE GetAt( int nIndex ) const
          
 AFX_INLINE const TYPE* GetData() const
          
 AFX_INLINE int GetSize() const
          CArray inline functions
 AFX_INLINE int GetUpperBound() const
          
 void InsertAt( int nStartIndex, CArray* pNewArray )
          
 void InsertAt( int nIndex, ARG_TYPE newElement, int nCount = 1 )
          
 AFX_INLINE TYPE operator[]( int nIndex ) const
          
 AFX_INLINE void RemoveAll()
          
 void RemoveAt( int nIndex, int nCount = 1 )
          
 void Serialize( CArchive& ar )
          
 AFX_INLINE void SetAt( int nIndex, ARG_TYPE newElement )
          
 void SetAtGrow( int nIndex, ARG_TYPE 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 TYPE* m_pData;


Constructor Detail

CArray

public CArray();
CArray out-of-line functions

~CArray

public ~CArray();


Method Detail

Add

public AFX_INLINE int Add( ARG_TYPE newElement );

Append

public int Append( const CArray& src );

Copy

public void Copy( const CArray& src );

ElementAt

public AFX_INLINE TYPE& ElementAt( int nIndex );

FreeExtra

public void FreeExtra();

GetAt

public AFX_INLINE TYPE GetAt( int nIndex ) const;

GetData

public AFX_INLINE const TYPE* GetData() const;

GetSize

public AFX_INLINE int GetSize() const;
CArray inline functions

GetUpperBound

public AFX_INLINE int GetUpperBound() const;

InsertAt

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

InsertAt

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

operator[]

public AFX_INLINE TYPE operator[]( int nIndex ) const;

RemoveAll

public AFX_INLINE void RemoveAll();

RemoveAt

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

Serialize

public void Serialize( CArchive& ar );

SetAt

public AFX_INLINE void SetAt( int nIndex, ARG_TYPE newElement );

SetAtGrow

public void SetAtGrow( int nIndex, ARG_TYPE newElement );

SetSize

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

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