Salome HOME
21680: EDF 2288 SMESH: creation of 0D elements from other elements
[modules/smesh.git] / src / SMDS / SMDS_MeshGroup.hxx
index 9f4a5f4393105433ef94c4ff06eb941d5590b781..c46184ea9dac57799f8c721207b4a5f04036626a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -50,6 +50,7 @@ class SMDS_EXPORT SMDS_MeshGroup:public SMDS_MeshObject
         bool Remove(const SMDS_MeshElement * theElem);
         bool IsEmpty() const { return myElements.empty(); }
         int Extent() const { return myElements.size(); }
+        int Tic() const { return myTic; }
 
         int SubGroupsNb() const { return myChildren.size(); }
 
@@ -82,10 +83,11 @@ class SMDS_EXPORT SMDS_MeshGroup:public SMDS_MeshObject
 
         const SMDS_Mesh *                       myMesh;
         SMDSAbs_ElementType                     myType;
-        std::set<const SMDS_MeshElement *>      myElements;
-        SMDS_MeshGroup *                        myParent;
+        std::set<const SMDS_MeshElement*>       myElements; /* - not sorted by ID because it */
+        SMDS_MeshGroup *                        myParent;   /* can contain deleted elements */
         std::list<const SMDS_MeshGroup*>        myChildren;
         TIterator                               myIterator;
         TGroupIterator                          myGroupIterator;
+        int                                     myTic; // to track changes
 };
 #endif