pqptrarray.h

来自「电能质量交换格式转换库」· C头文件 代码 · 共 40 行

H
40
字号
//  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;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?