27 #ifndef _SMDS_MeshGroup_HeaderFile
28 #define _SMDS_MeshGroup_HeaderFile
43 virtual bool RemoveFromParent();
51 bool IsEmpty()
const {
return myElements.empty(); }
52 int Extent()
const {
return myElements.size(); }
53 int Tic()
const {
return myTic; }
61 void InitIterator()
const
62 {
const_cast<TIterator&
>(myIterator) = myElements.begin(); }
64 bool More()
const {
return myIterator != myElements.end(); }
67 {
return *(
const_cast<TIterator&
>(myIterator))++; }
69 void InitSubGroupsIterator()
const
70 {
const_cast<TGroupIterator&
>(myGroupIterator) = myChildren.begin(); }
72 bool MoreSubGroups()
const {
return myGroupIterator != myChildren.end(); }
81 typedef std::set<const SMDS_MeshElement *>::const_iterator
TIterator;