Version: 8.3.0
SMDS_MeshGroup Class Reference

#include <SMDS_MeshGroup.hxx>

Inheritance diagram for SMDS_MeshGroup:

Public Member Functions

 SMDS_MeshGroup (const SMDS_Mesh *theMesh, const SMDSAbs_ElementType theType=SMDSAbs_All)
 
const SMDS_MeshGroupAddSubGroup (const SMDSAbs_ElementType theType=SMDSAbs_All)
 
virtual bool RemoveSubGroup (const SMDS_MeshGroup *theGroup)
 
virtual bool RemoveFromParent ()
 
const SMDS_MeshGetMesh () const
 
void SetType (const SMDSAbs_ElementType theType)
 
void Clear ()
 
bool Add (const SMDS_MeshElement *theElem)
 
bool Remove (const SMDS_MeshElement *theElem)
 
bool IsEmpty () const
 
int Extent () const
 
int Tic () const
 
int SubGroupsNb () const
 
SMDSAbs_ElementType GetType () const
 
bool Contains (const SMDS_MeshElement *theElem) const
 
void InitIterator () const
 
bool More () const
 
const SMDS_MeshElementNext () const
 
void InitSubGroupsIterator () const
 
bool MoreSubGroups () const
 
const SMDS_MeshGroupNextSubGroup () const
 

Private Types

typedef std::set< const
SMDS_MeshElement * >
::const_iterator 
TIterator
 
typedef std::list< const
SMDS_MeshGroup * >
::const_iterator 
TGroupIterator
 

Private Member Functions

 SMDS_MeshGroup (SMDS_MeshGroup *theParent, const SMDSAbs_ElementType theType=SMDSAbs_All)
 

Private Attributes

const SMDS_MeshmyMesh
 
SMDSAbs_ElementType myType
 
std::set< const
SMDS_MeshElement * > 
myElements
 
SMDS_MeshGroupmyParent
 
std::list< const SMDS_MeshGroup * > myChildren
 
TIterator myIterator
 
TGroupIterator myGroupIterator
 
int myTic
 

Member Typedef Documentation

typedef std::list<const SMDS_MeshGroup *>::const_iterator SMDS_MeshGroup::TGroupIterator
private
typedef std::set<const SMDS_MeshElement *>::const_iterator SMDS_MeshGroup::TIterator
private

Constructor & Destructor Documentation

SMDS_MeshGroup::SMDS_MeshGroup ( const SMDS_Mesh theMesh,
const SMDSAbs_ElementType  theType = SMDSAbs_All 
)
SMDS_MeshGroup::SMDS_MeshGroup ( SMDS_MeshGroup theParent,
const SMDSAbs_ElementType  theType = SMDSAbs_All 
)
private

Member Function Documentation

const SMDS_MeshGroup * SMDS_MeshGroup::AddSubGroup ( const SMDSAbs_ElementType  theType = SMDSAbs_All)
void SMDS_MeshGroup::Clear ( )

References myElements, myTic, myType, and SMDSAbs_All.

Referenced by SMESHDS_Group::Clear().

bool SMDS_MeshGroup::Contains ( const SMDS_MeshElement theElem) const
int SMDS_MeshGroup::Extent ( ) const

Referenced by SMESHDS_Group::Extent().

const SMDS_Mesh* SMDS_MeshGroup::GetMesh ( ) const
void SMDS_MeshGroup::InitIterator ( ) const
void SMDS_MeshGroup::InitSubGroupsIterator ( ) const
bool SMDS_MeshGroup::IsEmpty ( ) const
bool SMDS_MeshGroup::More ( ) const
bool SMDS_MeshGroup::MoreSubGroups ( ) const
const SMDS_MeshElement* SMDS_MeshGroup::Next ( ) const
const SMDS_MeshGroup* SMDS_MeshGroup::NextSubGroup ( ) const

Referenced by SMESH_Mesh::UNVToMesh().

bool SMDS_MeshGroup::RemoveFromParent ( )
virtual

References myParent, and RemoveSubGroup().

bool SMDS_MeshGroup::RemoveSubGroup ( const SMDS_MeshGroup theGroup)
virtual

References myChildren.

Referenced by RemoveFromParent().

void SMDS_MeshGroup::SetType ( const SMDSAbs_ElementType  theType)

References IsEmpty(), and myType.

Referenced by SMESHDS_Group::SetType().

int SMDS_MeshGroup::SubGroupsNb ( ) const
int SMDS_MeshGroup::Tic ( ) const

Referenced by SMESHDS_Group::GetTic().

Field Documentation

std::list<const SMDS_MeshGroup*> SMDS_MeshGroup::myChildren
private

Referenced by RemoveSubGroup().

std::set<const SMDS_MeshElement*> SMDS_MeshGroup::myElements
private

Referenced by Add(), Clear(), Contains(), and Remove().

TGroupIterator SMDS_MeshGroup::myGroupIterator
private
TIterator SMDS_MeshGroup::myIterator
private
const SMDS_Mesh* SMDS_MeshGroup::myMesh
private
SMDS_MeshGroup* SMDS_MeshGroup::myParent
private

Referenced by RemoveFromParent().

int SMDS_MeshGroup::myTic
private

Referenced by Add(), Clear(), and Remove().

SMDSAbs_ElementType SMDS_MeshGroup::myType
private

Referenced by Add(), Clear(), Remove(), and SetType().