]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To use safe MED::TVector instead of std::vector
authorapo <apo@opencascade.com>
Thu, 4 Aug 2005 05:49:04 +0000 (05:49 +0000)
committerapo <apo@opencascade.com>
Thu, 4 Aug 2005 05:49:04 +0000 (05:49 +0000)
src/CONVERTOR/VISU_Convertor.hxx
src/CONVERTOR/VISU_Convertor_impl.hxx

index 922d12b322e2a392ad1525fb2afdeba71cc7781d..926cf7cedd8b7bb0610427e867a011e50a8751de 100644 (file)
 #include <stdexcept>
 
 #include "MED_SharedPtr.hxx"
+#include "MED_Vector.hxx"
 
 class vtkUnstructuredGrid;
 
-namespace VISU{
-
+namespace VISU
+{
   using MED::SharedPtr;
+  using MED::TVector;
 
   //---------------------------------------------------------------
   enum  TEntity {NODE_ENTITY, EDGE_ENTITY, FACE_ENTITY, CELL_ENTITY};
@@ -81,7 +83,7 @@ namespace VISU{
   struct TValForTime;
   typedef SharedPtr<TValForTime> PValForTime;
 
-  typedef std::vector<std::string> TNames;
+  typedef TVector<std::string> TNames;
 
 
   //---------------------------------------------------------------
index 133e15ba34e76b3a45523a4c43f2d59f92a14ee5..989329f8a7cd84e575dbc4d2edbb5c698268a653 100644 (file)
@@ -69,7 +69,7 @@ namespace VISU
 
 
   //---------------------------------------------------------------
-  typedef std::vector<TCoord> TCoordArray;
+  typedef TVector<TCoord> TCoordArray;
   typedef TSlice<TCoordArray> TCoordSlice;
   typedef TCSlice<TCoordArray> TCCoordSlice;
 
@@ -111,7 +111,7 @@ namespace VISU
   //---------------------------------------------------------------
   class TNamedPointCoords: public virtual TPointCoords
   {
-    typedef std::vector<std::string> TPointsDim;
+    typedef TVector<std::string> TPointsDim;
     TPointsDim myPointsDim;
 
   public:
@@ -142,7 +142,7 @@ namespace VISU
 
 
   //---------------------------------------------------------------
-  typedef std::vector<vtkIdType> TSubMeshID;
+  typedef TVector<vtkIdType> TSubMeshID;
   typedef std::map<vtkIdType,TSubMeshID> TGeom2SubMeshID;
   typedef enum {eRemoveAll, eAddAll, eAddPart, eNone} ESubMeshStatus; 
 
@@ -203,8 +203,8 @@ namespace VISU
 
 
   //---------------------------------------------------------------
-  typedef std::vector<vtkIdType> TConnect;
-  typedef std::vector<TConnect> TCell2Connect;
+  typedef TVector<vtkIdType> TConnect;
+  typedef TVector<TConnect> TCell2Connect;
   typedef std::map<vtkIdType,TCell2Connect> TGeom2Cell2Connect;
 
   struct TMeshOnEntityImpl: virtual TMeshOnEntity, virtual TSource
@@ -244,12 +244,12 @@ namespace VISU
 
 
   //---------------------------------------------------------------
-  typedef std::vector<float> TValue;
+  typedef TVector<float> TValue;
   typedef TSlice<TValue> TValueSlice;
   typedef TCSlice<TValue> TCValueSlice;
 
-  typedef std::vector<TCValueSlice> TCValueSliceArr;
-  typedef std::vector<TValueSlice> TValueSliceArr;
+  typedef TVector<TCValueSlice> TCValueSliceArr;
+  typedef TVector<TValueSlice> TValueSliceArr;
 
   struct TMeshValue
   {