Salome HOME
PAL12992. Add type TIDSortedElemSet to be used to assure predictability of edition
authoreap <eap@opencascade.com>
Mon, 7 Aug 2006 12:05:03 +0000 (12:05 +0000)
committereap <eap@opencascade.com>
Mon, 7 Aug 2006 12:05:03 +0000 (12:05 +0000)
src/SMESH/SMESH_MeshEditor.hxx

index 9373b83..3c891d1 100644 (file)
@@ -55,7 +55,17 @@ class gp_Vec;
 class gp_Pnt;
 
 class SMESH_MeshEditor {
- public:
+public:
+
+  // define a set of elements sorted by ID, to be used to assure
+  // predictability of edition
+  struct TIDCompare {
+    bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2)
+    { return e1->GetID() < e2->GetID(); }
+  };
+  typedef set< const SMDS_MeshElement*, TIDCompare > TIDSortedElemSet;
+  
+public:
 
   SMESH_MeshEditor( SMESH_Mesh* theMesh );