//purpose :
//=======================================================================
-SMDS_ElemIteratorPtr SMESHDS_Group::GetElements()
+SMDS_ElemIteratorPtr SMESHDS_Group::GetElements() const
{
return SMDS_ElemIteratorPtr( new MyGroupIterator ( myGroup ));
}
virtual bool Contains (const SMDS_MeshElement* elem);
- virtual SMDS_ElemIteratorPtr GetElements();
+ virtual SMDS_ElemIteratorPtr GetElements() const;
bool Add (const int theID);
virtual bool Contains (const SMDS_MeshElement* elem);
- virtual SMDS_ElemIteratorPtr GetElements() = 0;
+ virtual SMDS_ElemIteratorPtr GetElements() const = 0;
int GetID (const int theIndex);
// use it for iterations 1..Extent()
//purpose :
//=======================================================================
-SMDS_ElemIteratorPtr SMESHDS_GroupOnGeom::GetElements()
+SMDS_ElemIteratorPtr SMESHDS_GroupOnGeom::GetElements() const
{
return SMDS_ElemIteratorPtr( new MyIterator ( GetType(), mySubMesh ));
}
virtual bool Contains (const SMDS_MeshElement* elem);
- virtual SMDS_ElemIteratorPtr GetElements();
+ virtual SMDS_ElemIteratorPtr GetElements() const;
private: