-// 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
// 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:
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
{
//---------------------------------------------------------------
- //! 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>
{