From: eap Date: Mon, 7 Aug 2006 12:05:03 +0000 (+0000) Subject: PAL12992. Add type TIDSortedElemSet to be used to assure predictability of edition X-Git-Tag: For_OCT_611~6 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=af7f9c70572ad1982fe56ad1fbfda1d50f7bcaf0 PAL12992. Add type TIDSortedElemSet to be used to assure predictability of edition --- diff --git a/src/SMESH/SMESH_MeshEditor.hxx b/src/SMESH/SMESH_MeshEditor.hxx index 9373b832c..3c891d1a3 100644 --- a/src/SMESH/SMESH_MeshEditor.hxx +++ b/src/SMESH/SMESH_MeshEditor.hxx @@ -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 );