From: apo Date: Thu, 4 Aug 2005 05:49:04 +0000 (+0000) Subject: To use safe MED::TVector instead of std::vector X-Git-Tag: BR-D5-38-2003_D2005-12-09~135 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d90c02446cb9efd53a1c278d2ad2131f4667b56;p=modules%2Fvisu.git To use safe MED::TVector instead of std::vector --- diff --git a/src/CONVERTOR/VISU_Convertor.hxx b/src/CONVERTOR/VISU_Convertor.hxx index 922d12b3..926cf7ce 100644 --- a/src/CONVERTOR/VISU_Convertor.hxx +++ b/src/CONVERTOR/VISU_Convertor.hxx @@ -37,12 +37,14 @@ #include #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 PValForTime; - typedef std::vector TNames; + typedef TVector TNames; //--------------------------------------------------------------- diff --git a/src/CONVERTOR/VISU_Convertor_impl.hxx b/src/CONVERTOR/VISU_Convertor_impl.hxx index 133e15ba..989329f8 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.hxx +++ b/src/CONVERTOR/VISU_Convertor_impl.hxx @@ -69,7 +69,7 @@ namespace VISU //--------------------------------------------------------------- - typedef std::vector TCoordArray; + typedef TVector TCoordArray; typedef TSlice TCoordSlice; typedef TCSlice TCCoordSlice; @@ -111,7 +111,7 @@ namespace VISU //--------------------------------------------------------------- class TNamedPointCoords: public virtual TPointCoords { - typedef std::vector TPointsDim; + typedef TVector TPointsDim; TPointsDim myPointsDim; public: @@ -142,7 +142,7 @@ namespace VISU //--------------------------------------------------------------- - typedef std::vector TSubMeshID; + typedef TVector TSubMeshID; typedef std::map TGeom2SubMeshID; typedef enum {eRemoveAll, eAddAll, eAddPart, eNone} ESubMeshStatus; @@ -203,8 +203,8 @@ namespace VISU //--------------------------------------------------------------- - typedef std::vector TConnect; - typedef std::vector TCell2Connect; + typedef TVector TConnect; + typedef TVector TCell2Connect; typedef std::map TGeom2Cell2Connect; struct TMeshOnEntityImpl: virtual TMeshOnEntity, virtual TSource @@ -244,12 +244,12 @@ namespace VISU //--------------------------------------------------------------- - typedef std::vector TValue; + typedef TVector TValue; typedef TSlice TValueSlice; typedef TCSlice TCValueSlice; - typedef std::vector TCValueSliceArr; - typedef std::vector TValueSliceArr; + typedef TVector TCValueSliceArr; + typedef TVector TValueSliceArr; struct TMeshValue {