SALOME - SMESH
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SMESH_DefineArray2.hxx
Go to the documentation of this file.
00001 // File:      NCollection_DefineArray2.hxx
00002 // Created:   15.04.02 17:05:16
00003 // Author:    Alexander Kartomin (akm)
00004 //            <a-kartomin@opencascade.com>
00005 //            Automatically created from NCollection_Array2.hxx by GAWK
00006 // Copyright: Open Cascade 2002
00007 //            
00008 // Purpose:   The class Array2 represents bi-dimensional arrays 
00009 //            of fixed size known at run time. 
00010 //            The ranges of indices are user defined.
00011 //            
00012 // Warning:   Programs clients of such class must be independant
00013 //            of the range of the first element. Then, a C++ for
00014 //            loop must be written like this
00015 //            
00016 //            for (i = A.LowerRow(); i <= A.UpperRow(); i++)
00017 //              for (j = A.LowerCol(); j <= A.UpperCol(); j++)
00018 //            
00019 
00020 #ifndef SMESH_DefineArray2_HeaderFile
00021 #define SMESH_DefineArray2_HeaderFile
00022 
00023 #include <NCollection_DefineBaseCollection.hxx>
00024 #include <SMESH_Array2.hxx>
00025 
00026 #ifdef WNT
00027 // Disable the warning "operator new unmatched by delete"
00028 #pragma warning (disable:4291)
00029 #endif
00030 
00031 // *********************************************** Template for Array2 class
00032 
00033 #define SMESH_DEFINE_ARRAY2(_ClassName_, _BaseCollection_, TheItemType)              \
00034         typedef SMESH_Array2<TheItemType > _ClassName_;
00035 
00036 #endif