SALOME - SMESH
SMESH_DefineArray2.hxx
Go to the documentation of this file.
1 // File: NCollection_DefineArray2.hxx
2 // Created: 15.04.02 17:05:16
3 // Author: Alexander Kartomin (akm)
4 // <a-kartomin@opencascade.com>
5 // Automatically created from NCollection_Array2.hxx by GAWK
6 // Copyright: Open Cascade 2002
7 //
8 // Purpose: The class Array2 represents bi-dimensional arrays
9 // of fixed size known at run time.
10 // The ranges of indices are user defined.
11 //
12 // Warning: Programs clients of such class must be independant
13 // of the range of the first element. Then, a C++ for
14 // loop must be written like this
15 //
16 // for (i = A.LowerRow(); i <= A.UpperRow(); i++)
17 // for (j = A.LowerCol(); j <= A.UpperCol(); j++)
18 //
19 
20 #ifndef SMESH_DefineArray2_HeaderFile
21 #define SMESH_DefineArray2_HeaderFile
22 
24 #include <SMESH_Array2.hxx>
25 
26 #ifdef WNT
27 // Disable the warning "operator new unmatched by delete"
28 #pragma warning (disable:4291)
29 #endif
30 
31 // *********************************************** Template for Array2 class
32 
33 #define SMESH_DEFINE_ARRAY2(_ClassName_, _BaseCollection_, TheItemType) \
34  typedef SMESH_Array2<TheItemType > _ClassName_;
35 
36 #endif