]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESHDS/SMESHDS_GroupOnFilter.cxx
Salome HOME
Revert "23418: [OCC] Mesh: Minimization of memory usage of SMESH"
[modules/smesh.git] / src / SMESHDS / SMESHDS_GroupOnFilter.cxx
index e5b2fb736bd3d75362f0f6aae9a85343fc3cf8bf..7653e176ce6811b594cd62b99d60e335bf8d7079 100644 (file)
 #include "SMESHDS_GroupOnFilter.hxx"
 
 #include "SMDS_SetIterator.hxx"
-#include "ObjectPool.hxx"
 #include "SMESHDS_Mesh.hxx"
 
 #include <numeric>
 #include <limits>
 
-#include <boost/make_shared.hpp>
-
 using namespace std;
 
 //#undef WITH_TBB
@@ -48,12 +45,11 @@ SMESHDS_GroupOnFilter::SMESHDS_GroupOnFilter (const int                 theID,
                                               const SMESHDS_Mesh*       theMesh,
                                               const SMDSAbs_ElementType theType,
                                               const SMESH_PredicatePtr& thePredicate)
-  : SMESHDS_GroupBase( theID, theMesh, theType ),
-    SMDS_ElementHolder( theMesh ),
+  : SMESHDS_GroupBase(theID,theMesh,theType),
     myMeshInfo( SMDSEntity_Last, 0 ),
-    myMeshModifTime( 0 ),
-    myPredicateTic( 0 ),
-    myNbElemToSkip( 0 )
+    myMeshModifTime(0),
+    myPredicateTic(0),
+    myNbElemToSkip(0)
 {
   SetPredicate( thePredicate );
 }
@@ -536,38 +532,3 @@ SMESHDS_GroupOnFilter::setNbElemToSkip( SMDS_ElemIteratorPtr& okElemIt )
   }
   return firstOkElem;
 }
-
-//================================================================================
-/*!
- * \brief Return elements before mesh compacting
- */
-//================================================================================
-
-SMDS_ElemIteratorPtr SMESHDS_GroupOnFilter::getElements()
-{
-  return boost::make_shared< SMDS_ElementVectorIterator >( myElements.begin(), myElements.end() );
-}
-
-//================================================================================
-/*!
- * \brief clear myElements before re-filling after mesh compacting
- */
-//================================================================================
-
-void SMESHDS_GroupOnFilter::tmpClear()
-{
-  std::vector< const SMDS_MeshElement*> newElems( myElements.size() );
-  myElements.swap( newElems );
-  myElements.clear();
-}
-
-//================================================================================
-/*!
- * \brief Re-fill myElements after mesh compacting
- */
-//================================================================================
-
-void SMESHDS_GroupOnFilter::add( const SMDS_MeshElement* element )
-{
-  myElements.push_back( element );
-}