27 #ifndef _SMDS_MeshGroup_HeaderFile
28 #define _SMDS_MeshGroup_HeaderFile
47 bool IsEmpty()
const {
return myElements.empty(); }
48 smIdType
Extent()
const {
return (smIdType) myElements.size(); }
49 int Tic()
const {
return myTic; }
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
Definition: SMDSAbs_ElementType.hxx:34
@ SMDSAbs_All
Definition: SMDSAbs_ElementType.hxx:35
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
Definition: SMDS_ElemIterator.hxx:43
#define SMDS_EXPORT
Definition: SMESH_SMDS.hxx:37
Base class of object holding SMDS_MeshElement pointers.
Definition: SMDS_ElementHolder.hxx:48
virtual void tmpClear()=0
the descendant object re-add its elements after the mesh compacting
SMDS_Mesh * myMesh
Definition: SMDS_ElementHolder.hxx:75
Base class for elements.
Definition: SMDS_MeshElement.hxx:56
Definition: SMDS_MeshGroup.hxx:37
virtual void add(const SMDS_MeshElement *element)
the descendant squeeze its element storage after re-adding elements
Definition: SMDS_MeshGroup.hxx:62
smIdType Extent() const
Definition: SMDS_MeshGroup.hxx:48
void Reserve(size_t)
Definition: SMDS_MeshGroup.hxx:44
int Tic() const
Definition: SMDS_MeshGroup.hxx:49
const SMDS_Mesh * myMesh
Definition: SMDS_MeshGroup.hxx:70
virtual SMDS_ElemIteratorPtr getElements()
< the descendant object return its elements just before the mesh compacting
Definition: SMDS_MeshGroup.hxx:60
const SMDS_Mesh * GetMesh() const
Definition: SMDS_MeshGroup.hxx:52
int myTic
Definition: SMDS_MeshGroup.hxx:73
SMDSAbs_ElementType GetType() const
Definition: SMDS_MeshGroup.hxx:53
SMDSAbs_ElementType myType
Definition: SMDS_MeshGroup.hxx:71
virtual void compact()
allow the descendant treat its elements before mesh clearing
Definition: SMDS_MeshGroup.hxx:63
TElementSet myElements
Definition: SMDS_MeshGroup.hxx:72
TElementSet::const_iterator TIterator
Definition: SMDS_MeshGroup.hxx:68
bool IsEmpty() const
Definition: SMDS_MeshGroup.hxx:47
std::set< const SMDS_MeshElement * > TElementSet
Definition: SMDS_MeshGroup.hxx:67
Definition: SMDS_MeshObject.hxx:33
Definition: SMDS_Mesh.hxx:53
ENUM Add(ENUM v, int delta)
Return incremented enum value.
Definition: SMESH_TypeDefs.hxx:137