Go to the documentation of this file.
26 #ifndef _SMDS_MeshGroup_HeaderFile
27 #define _SMDS_MeshGroup_HeaderFile
50 bool IsEmpty()
const {
return myElements.empty(); }
51 int Extent()
const {
return myElements.size(); }
60 {
const_cast<TIterator&
>(myIterator) = myElements.begin(); }
62 bool More()
const {
return myIterator != myElements.end(); }
65 {
return *(
const_cast<TIterator&
>(myIterator))++; }
68 {
const_cast<TGroupIterator&
>(myGroupIterator) = myChildren.begin(); }
70 bool MoreSubGroups()
const {
return myGroupIterator != myChildren.end(); }
79 typedef std::set<const SMDS_MeshElement *>::const_iterator
TIterator;
bool Remove(const SMDS_MeshElement *theElem)
std::list< const SMDS_MeshGroup * > myChildren
SMDS_MeshGroup(SMDS_MeshGroup *theParent, const SMDSAbs_ElementType theType=SMDSAbs_All)
void Add(const SMDS_MeshElement *theElem)
SMDS_MeshGroup(const SMDS_Mesh *theMesh, const SMDSAbs_ElementType theType=SMDSAbs_All)
const SMDS_MeshGroup * AddSubGroup(const SMDSAbs_ElementType theType=SMDSAbs_All)
TGroupIterator myGroupIterator
virtual bool RemoveSubGroup(const SMDS_MeshGroup *theGroup)
const SMDS_MeshElement * Next() const
SMDSAbs_ElementType myType
SMDSAbs_ElementType GetType() const
std::set< const SMDS_MeshElement * > myElements
bool MoreSubGroups() const
bool Contains(const SMDS_MeshElement *theElem) const
SMDS_MeshGroup * myParent
void SetType(const SMDSAbs_ElementType theType)
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
const SMDS_Mesh * GetMesh() const
virtual bool RemoveFromParent()
const SMDS_MeshGroup * NextSubGroup() const
void InitIterator() const
void InitSubGroupsIterator() const
std::set< const SMDS_MeshElement * >::const_iterator TIterator
std::list< const SMDS_MeshGroup * >::const_iterator TGroupIterator