X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MeshGroup.hxx;h=3b39c7022fd7ba344e884d38ae026c1bc138d81f;hp=b605737bfab79d92af4df0b1dc95df4acfda169b;hb=19fe2e412fa1cb1fd33d7a2580b2483280db811e;hpb=dfdbed8fb713bb4ead334f12723a8e1bf92eca51 diff --git a/src/SMDS/SMDS_MeshGroup.hxx b/src/SMDS/SMDS_MeshGroup.hxx index b605737bf..3b39c7022 100644 --- a/src/SMDS/SMDS_MeshGroup.hxx +++ b/src/SMDS/SMDS_MeshGroup.hxx @@ -33,8 +33,6 @@ #include "SMDS_Mesh.hxx" #include -#include - class SMDS_EXPORT SMDS_MeshGroup: public SMDS_MeshObject, SMDS_ElementHolder { public: @@ -43,7 +41,7 @@ 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(); } @@ -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;