Salome HOME
23517: [CEA 2203] : Mesh group of polyhedron not exported in med and not saved in hdf
[modules/smesh.git] / src / MEDWrapper / Base / MED_SliceArray.hxx
index c41951c75dd0778f312d7ebe2eab3f50681c0919..24e01f6f4de74070d319e48e15af00309547d036 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//
 #ifndef MED_SliceArray_HeaderFile
 #define MED_SliceArray_HeaderFile
 
-#ifdef WIN32 // for correctly compiling "valarray" in modules, which are includes this file
+#ifdef WIN32 // for correctly compiling "valarray" in modules, which includes this file
   #undef max
   #undef min
 #endif
 namespace MED
 {
   //---------------------------------------------------------------
-  //! This class intends to provide an uniform way to handle multy-dimention data (const version)
+  //! This class intends to provide a uniform way to handle multidimensional data (const version)
   /*! 
-    It just contains pointer to real sequence and implement proper calcultion of its indexes.
-    This class deal with constant pointer to the sources data and provide const method to
-    read the them (data).
+    It just contains a pointer to real sequence and implement proper calculation of its indexes.
+    This class deals with constant pointer to the sources data and provides const method to
+    read them (data).
    */
   template<class TValueType> 
   class TCSlice
   {
-    const TValueType* myCValuePtr; //!< Reference to source multy-dimension data
-    size_t mySourceSize; //!< Size of the source multy-dimension data
+    const TValueType* myCValuePtr; //!< Reference to source multidimensional data
+    size_t mySourceSize; //!< Size of the source multidimensional data
     std::slice mySlice; //!< Defines algorithm of index calculation
 
   protected:
@@ -64,7 +63,7 @@ namespace MED
       throw std::out_of_range("TCSlice::check_id");
     }
 
-    //! Calculate internal index to get proper element from the source multy-dimension data
+    //! Calculate internal index to get proper element from the source multidimensional data
     size_t
     calculate_id(size_t theId) const
     {
@@ -135,7 +134,7 @@ namespace MED
   
 
   //---------------------------------------------------------------
-  //! This class extend TCSlice functionality for non-constant case
+  //! This class extends TCSlice functionality for non-constant case
   template<class TValueType> 
   class TSlice: public TCSlice<TValueType>
   {