SALOME - SMESH
SMDS_MeshGroup Class Reference

#include <SMDS_MeshGroup.hxx>

Inheritance diagram for SMDS_MeshGroup:
Inheritance graph
Collaboration diagram for SMDS_MeshGroup:
Collaboration graph

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 ()
 
void Add (const SMDS_MeshElement *theElem)
 
bool Remove (const SMDS_MeshElement *theElem)
 
bool IsEmpty () const
 
int Extent () 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
 

Detailed Description

Definition at line 34 of file SMDS_MeshGroup.hxx.

Member Typedef Documentation

◆ TIterator

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

Definition at line 79 of file SMDS_MeshGroup.hxx.

◆ TGroupIterator

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

Definition at line 80 of file SMDS_MeshGroup.hxx.

Constructor & Destructor Documentation

◆ SMDS_MeshGroup() [1/2]

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

◆ SMDS_MeshGroup() [2/2]

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

Member Function Documentation

◆ AddSubGroup()

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

◆ RemoveSubGroup()

virtual bool SMDS_MeshGroup::RemoveSubGroup ( const SMDS_MeshGroup theGroup)
virtual

◆ RemoveFromParent()

virtual bool SMDS_MeshGroup::RemoveFromParent ( )
virtual

◆ GetMesh()

const SMDS_Mesh* SMDS_MeshGroup::GetMesh ( ) const

Definition at line 44 of file SMDS_MeshGroup.hxx.

◆ SetType()

void SMDS_MeshGroup::SetType ( const SMDSAbs_ElementType  theType)

◆ Clear()

void SMDS_MeshGroup::Clear ( )

◆ Add()

void SMDS_MeshGroup::Add ( const SMDS_MeshElement theElem)

◆ Remove()

bool SMDS_MeshGroup::Remove ( const SMDS_MeshElement theElem)

◆ IsEmpty()

bool SMDS_MeshGroup::IsEmpty ( ) const

Definition at line 50 of file SMDS_MeshGroup.hxx.

◆ Extent()

int SMDS_MeshGroup::Extent ( ) const

Definition at line 51 of file SMDS_MeshGroup.hxx.

◆ SubGroupsNb()

int SMDS_MeshGroup::SubGroupsNb ( ) const

Definition at line 53 of file SMDS_MeshGroup.hxx.

◆ GetType()

SMDSAbs_ElementType SMDS_MeshGroup::GetType ( ) const

Definition at line 55 of file SMDS_MeshGroup.hxx.

◆ Contains()

bool SMDS_MeshGroup::Contains ( const SMDS_MeshElement theElem) const

◆ InitIterator()

void SMDS_MeshGroup::InitIterator ( ) const

Definition at line 59 of file SMDS_MeshGroup.hxx.

◆ More()

bool SMDS_MeshGroup::More ( void  ) const

Definition at line 62 of file SMDS_MeshGroup.hxx.

◆ Next()

const SMDS_MeshElement* SMDS_MeshGroup::Next ( void  ) const

Definition at line 64 of file SMDS_MeshGroup.hxx.

◆ InitSubGroupsIterator()

void SMDS_MeshGroup::InitSubGroupsIterator ( ) const

Definition at line 67 of file SMDS_MeshGroup.hxx.

◆ MoreSubGroups()

bool SMDS_MeshGroup::MoreSubGroups ( ) const

Definition at line 70 of file SMDS_MeshGroup.hxx.

◆ NextSubGroup()

const SMDS_MeshGroup* SMDS_MeshGroup::NextSubGroup ( ) const

Definition at line 72 of file SMDS_MeshGroup.hxx.

Field Documentation

◆ myMesh

const SMDS_Mesh* SMDS_MeshGroup::myMesh
private

Definition at line 82 of file SMDS_MeshGroup.hxx.

◆ myType

SMDSAbs_ElementType SMDS_MeshGroup::myType
private

Definition at line 83 of file SMDS_MeshGroup.hxx.

◆ myElements

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

Definition at line 84 of file SMDS_MeshGroup.hxx.

◆ myParent

SMDS_MeshGroup* SMDS_MeshGroup::myParent
private

Definition at line 85 of file SMDS_MeshGroup.hxx.

◆ myChildren

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

Definition at line 86 of file SMDS_MeshGroup.hxx.

◆ myIterator

TIterator SMDS_MeshGroup::myIterator
private

Definition at line 87 of file SMDS_MeshGroup.hxx.

◆ myGroupIterator

TGroupIterator SMDS_MeshGroup::myGroupIterator
private

Definition at line 88 of file SMDS_MeshGroup.hxx.