]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
EHPOC
authoreap <eap@opencascade.com>
Fri, 9 Apr 2010 06:11:05 +0000 (06:11 +0000)
committereap <eap@opencascade.com>
Fri, 9 Apr 2010 06:11:05 +0000 (06:11 +0000)
  * replace vector<>::data() by &vector<>::front()

src/INTERP_KERNEL/CurveIntersectorP0P0.txx
src/INTERP_KERNEL/CurveIntersectorP0P1.txx
src/INTERP_KERNEL/CurveIntersectorP1P0.txx
src/INTERP_KERNEL/CurveIntersectorP1P1.txx

index d3feea029d2df4febb98919cc2534c789fae977b..0475709686eee9564d829937bcafdd2ce6d17562 100644 (file)
@@ -64,8 +64,8 @@ namespace INTERP_KERNEL
           int s, nbSegS = 1 + BASE_INTERSECTOR::getRealSourceCoordinates(iS,coordsS);
           for ( s = 0; s < nbSegS; ++s )
             {
-              double surf = BASE_INTERSECTOR::intersectSegments(coordsT.data() + t*SPACEDIM,
-                                                                coordsS.data() + s*SPACEDIM);
+              double surf = BASE_INTERSECTOR::intersectSegments(&coordsT[0] + t*SPACEDIM,
+                                                                &coordsS[0] + s*SPACEDIM);
               if(surf!=0.)
                 resRow.insert(std::make_pair(OTT<ConnType,numPol>::indFC(iS),surf));
             }
index 6ff2ac99341a03602f87dda22433f46c8f1ee13d..c11e2ca34cfb6885d8f9fe24cec6371195d6d832 100644 (file)
@@ -71,8 +71,8 @@ namespace INTERP_KERNEL
             int s, nbSegS = 1 + BASE_INTERSECTOR::getRealSourceCoordinates(iS,coordsS);
             for ( s = 0; s < nbSegS; ++s )
               {
-                double surf = BASE_INTERSECTOR::intersectSegments(segmentsT[t]._coords.data(),
-                                                                  coordsS.data() + s*SPACEDIM);
+                double surf = BASE_INTERSECTOR::intersectSegments(&segmentsT[t]._coords[0],
+                                                                  &coordsS[0] + s*SPACEDIM);
                 if(surf!=0.)
                   {
                     typename MyMatrix::value_type::const_iterator iterRes=resRow.find(OTT<ConnType,numPol>::indFC(iS));
index 49008d0883fdbc11abd41863fe6f1c1566d41271..a6c372c2a82dbe0647e9969bb3d27dfcaf48626c 100644 (file)
@@ -71,8 +71,8 @@ namespace INTERP_KERNEL
                                              BASE_INTERSECTOR::_meshS, segmentsS);
           for ( int s = 0; s < segmentsS.size(); ++s )
             {
-              double surf = BASE_INTERSECTOR::intersectSegments(segmentsS[s]._coords.data(),
-                                                                coordsT.data() + t*SPACEDIM);
+              double surf = BASE_INTERSECTOR::intersectSegments(&segmentsS[s]._coords[0],
+                                                                &coordsT[0] + t*SPACEDIM);
               if(surf!=0.)
                 {
                   int nS = segmentsS[s]._nodeId;
index fa39b2e5f1a8b835ca51c38ef81ef7adba7f1107..0b5ab3971f6f22f32e5fb700c6229bd0a0645d4b 100644 (file)
@@ -65,8 +65,8 @@ namespace INTERP_KERNEL
                                                BASE_INTERSECTOR::_meshS, segmentsS);
             for ( int s = 0; s < segmentsS.size(); ++s )
               {
-                double surf = BASE_INTERSECTOR::intersectSegments(segmentsT[t]._coords.data(),
-                                                                  segmentsS[s]._coords.data());
+                double surf = BASE_INTERSECTOR::intersectSegments(&segmentsT[t]._coords[0],
+                                                                  &segmentsS[s]._coords[0]);
                 if(surf!=0.)
                   {
                     int nS = segmentsS[s]._nodeId;