]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Improve SMDS: replace STL containers with their eqiuvalents from OCCT NCollection
authormsv <msv@opencascade.com>
Fri, 14 Jan 2005 13:39:57 +0000 (13:39 +0000)
committermsv <msv@opencascade.com>
Fri, 14 Jan 2005 13:39:57 +0000 (13:39 +0000)
              for sets of mesh entities

src/SMDS/SMDS_Mesh.hxx

index cdcc9166b011e593385bb5f59de16f2677ff4d28..1aa9dda929b099a928470653511f18faefdef086 100644 (file)
@@ -32,7 +32,8 @@
 #include "SMDS_MeshFace.hxx"
 #include "SMDS_MeshVolume.hxx"
 #include "SMDS_MeshElementIDFactory.hxx"
-#include "SMDS_Iterator.hxx"
+#include "SMDS_ElemIterator.hxx"
+#include <NCollection_Map.hxx>
 
 #include <boost/shared_ptr.hpp>
 #include <set>
@@ -268,10 +269,10 @@ public:
    */
   bool Contains (const SMDS_MeshElement* elem) const;
 
-  typedef std::set<SMDS_MeshNode *> SetOfNodes;
-  typedef std::set<SMDS_MeshEdge *> SetOfEdges;
-  typedef std::set<SMDS_MeshFace *> SetOfFaces;
-  typedef std::set<SMDS_MeshVolume *> SetOfVolumes;
+  typedef NCollection_Map<SMDS_MeshNode *> SetOfNodes;
+  typedef NCollection_Map<SMDS_MeshEdge *> SetOfEdges;
+  typedef NCollection_Map<SMDS_MeshFace *> SetOfFaces;
+  typedef NCollection_Map<SMDS_MeshVolume *> SetOfVolumes;
 
 private:
   SMDS_Mesh(SMDS_Mesh * parent);