You are on page 1of 1

DECLARE_ARRAY3D( AAA )

CArray3D_AAA
CArray2D_AAA
CArray1D_AAA

DECLARE_ARRAY3DC( BBB )

CArray3D_BBB
CArray2D_BBB
CArray1D_BBB

#define TYPE_ARRAY1D( _typ ) CArray1D_##_typ


#define TYPE_ARRAY2D( _typ ) CArray2D_##_typ
#define TYPE_ARRAY3D( _typ ) CArray3D_##_typ

#define TYPE_ARRAY1DC( _typ ) CArray1DC_##_typ


#define TYPE_ARRAY2DC( _typ ) CArray2DC_##_typ
#define TYPE_ARRAY3DC( _typ ) CArray3DC_##_typ

CArray2D_AAA aaa ;

aaa.Redim( 1, 2, 1, 5 )

aaa.UBound( 1 ) -> 2
aaa.UBound( 2 ) -> 2

aaa.Preserve( 1, 2, 1, 5 )

struct CCC {
CArray2D_AAA aaa ;
int nTest ;
void Clear(int nIndex) {
nTest = 0 ;
aaa.Clear( -1 ) ;
}
} ;

DECLARE_ARRAY3DC( TYPE_ARRAY3DC( AAA ) )