// 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.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// File : SMESHDS_Group.hxx
-// Author : Michael Sazonov (OCC)
// Module : SMESH
// $Header$
#ifndef _SMESHDS_Group_HeaderFile
#define _SMESHDS_Group_HeaderFile
-#include <SMDS_MeshGroup.hxx>
#include <string>
+#include "SMESHDS_GroupBase.hxx"
+#include "SMDS_MeshGroup.hxx"
class SMESHDS_Mesh;
-class SMESHDS_Group : public SMDS_MeshGroup
+class SMESHDS_Group : public SMESHDS_GroupBase
{
public:
- SMESHDS_Group (const SMESHDS_Mesh* theMesh,
+ SMESHDS_Group (const int theID,
+ const SMESHDS_Mesh* theMesh,
const SMDSAbs_ElementType theType);
- void SetStoreName (const char* theName)
- { myStoreName = theName; }
+ virtual void SetType(SMDSAbs_ElementType theType);
- const char* GetStoreName () const
- { return myStoreName.c_str(); }
+ virtual int Extent();
- bool Contains (const int theID) const;
+ virtual bool IsEmpty();
+
+ virtual bool Contains (const int theID);
+
+ virtual SMDS_ElemIteratorPtr GetElements();
bool Add (const int theID);
+
bool Remove (const int theID);
- int GetID (const int theIndex);
- // use it for iterations 1..Extent() as alternative to parent's
- // InitIterator(), More(), Next()
+ void Clear();
- private:
- SMESHDS_Group (const SMESHDS_Group& theOther);
- // prohibited copy constructor
- SMESHDS_Group& operator = (const SMESHDS_Group& theOther);
- // prohibited assign operator
+ SMDS_MeshGroup& SMDSGroup() { return myGroup; }
- const SMDS_MeshElement* findInMesh (const int theID) const;
+ private:
- string myStoreName;
- int myCurIndex;
- int myCurID;
+ SMDS_MeshGroup myGroup;
};