Salome HOME
bos #20256: [CEA 18523] Porting SMESH to int 64 bits
[modules/smesh.git] / src / SMDS / SMDS_MeshGroup.hxx
index b605737bfab79d92af4df0b1dc95df4acfda169b..140216c0e01588de5059b17e9af810c3ae303455 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  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
@@ -33,8 +33,6 @@
 #include "SMDS_Mesh.hxx"
 #include <set>
 
-#include <boost/container/flat_set.hpp>
-
 class SMDS_EXPORT SMDS_MeshGroup: public SMDS_MeshObject, SMDS_ElementHolder
 {
  public:
@@ -43,11 +41,11 @@ class SMDS_EXPORT SMDS_MeshGroup: public SMDS_MeshObject, SMDS_ElementHolder
 
   void SetType (const SMDSAbs_ElementType theType);
   void Clear();
-  void Reserve(size_t nbElems) { myElements.reserve( nbElems ); }
+  void Reserve(size_t /*nbElems*/) {}
   bool Add(const SMDS_MeshElement * theElem);
   bool Remove(const SMDS_MeshElement * theElem);
   bool IsEmpty() const { return myElements.empty(); }
-  int  Extent() const { return myElements.size(); }
+  smIdType  Extent() const { return (smIdType) myElements.size(); }
   int  Tic() const { return myTic; }
   bool Contains(const SMDS_MeshElement * theElem) const;
 
@@ -62,12 +60,12 @@ class SMDS_EXPORT SMDS_MeshGroup: public SMDS_MeshObject, SMDS_ElementHolder
   virtual SMDS_ElemIteratorPtr getElements() { return GetElements(); }
   virtual void tmpClear();
   virtual void add( const SMDS_MeshElement* element ) { Add( element ); }
-  virtual void compact() { myElements.shrink_to_fit(); }
+  virtual void compact() {}
 
  private:
 
-  typedef boost::container::flat_set< const SMDS_MeshElement* > TElementSet;
-  typedef TElementSet::const_iterator                           TIterator;
+  typedef std::set< const SMDS_MeshElement* > TElementSet;
+  typedef TElementSet::const_iterator         TIterator;
 
   const SMDS_Mesh *   myMesh;
   SMDSAbs_ElementType myType;