Files
front_linux/LFtid1056/pqdif/include/pqptrarray.h

40 lines
869 B
C
Raw Normal View History

// File name: $Workfile: pqptrarray.h $
// Last modified: $Modtime: 1/03/99 7:27p $
// Last modified by: $Author: Erich $
//
// VCS archive path: $Archive: /Hank/DMM/FirmWare/Level3/ObDatMgr/pqptrarray.h $
// VCS revision: $Revision: 3 $
class CPQPtrArray
{
public:
CPQPtrArray();
~CPQPtrArray();
public:
int GetSize( void ) const;
void SetSize( int NewSize, int GrowBy = -1 );
void * GetAt( int idx ) const;
void SetAt( int idx, void * value );
void SetAtGrow( int idx, void * value );
void InsertAt( int indexToInsert, void * prec, int nCount = 1 );
void RemoveAt( int indexToInsert );
int Add( void * value );
void * operator[] ( int idx ) const;
#ifdef _DEBUG
bool Test( void );
#endif
protected:
void ** m_data;
int m_size;
int m_max;
int m_growBy;
};