Salome HOME
PAL12992. Add type TIDSortedElemSet to be used to assure predictability of edition
[modules/smesh.git] / src / SMESH / SMESH_MeshEditor.hxx
index d09fb2de4b5595fb0ad006c2184b80ba36b4c23f..3c891d1a3fc3024ccad6f15e7e63dba8ddb07dab 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -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 );