// 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
//
//
//
return false;
}
+//=======================================================================
+//function : Contains
+//purpose :
+//=======================================================================
+
+bool SMESHDS_Group::Contains (const SMDS_MeshElement* elem)
+{
+ if (elem)
+ return myGroup.Contains(elem);
+ return false;
+}
+
//=============================================================================
/*!
*
SetType( aElem->GetType() );
myGroup.Add (aElem);
+ resetIterator();
return true;
}
if (!aElem || !myGroup.Contains(aElem))
return false;
myGroup.Remove (aElem);
+ resetIterator();
return true;
}
-//=======================================================================
+
+//======================================================================
//function : Clear
//purpose :
//=======================================================================
void SMESHDS_Group::Clear()
{
myGroup.Clear();
+ resetIterator();
}
// =====================