Version: 9.12.0
MeshEditor_I::TSearchersDeleter Struct Reference

Deleter of theNodeSearcher and theElementSearcher at any compute event occurred. More...

Inheritance diagram for MeshEditor_I::TSearchersDeleter:

Public Types

typedef map< int, SMESH_subMesh * > TDependsOnMap
 The meshod called by submesh: do my main job. More...
 

Public Member Functions

 TSearchersDeleter ()
 Delete theNodeSearcher. More...
 
void ProcessEvent (const int, const int eventType, SMESH_subMesh *sm, SMESH_subMeshEventListenerData *, const SMESH_Hypothesis *)
 set self on all submeshes and delete theNodeSearcher if other mesh is set More...
 
void Set (SMESH_Mesh *mesh, const string &meshPartIOR=string())
 delete self from all submeshes More...
 
void Unset (SMESH_Mesh *mesh)
 
bool IsDeletable () const
 
const char * GetName () const
 
virtual void BeforeDelete (SMESH_subMesh *, SMESH_subMeshEventListenerData *)
 

Static Public Member Functions

static void Delete ()
 

Data Fields

SMESH_MeshmyMesh
 
string myMeshPartIOR
 Constructor. More...
 

Private Attributes

bool myIsDeletable
 if true, it will be deleted by SMESH_subMesh More...
 
std::set< SMESH_subMesh * > myBusySM
 to avoid infinite recursion via events More...
 
const char * myName
 identifier More...
 

Detailed Description

Deleter of theNodeSearcher and theElementSearcher at any compute event occurred.

Member Typedef Documentation

◆ TDependsOnMap

The meshod called by submesh: do my main job.

Constructor & Destructor Documentation

◆ TSearchersDeleter()

MeshEditor_I::TSearchersDeleter::TSearchersDeleter ( )

Delete theNodeSearcher.

Member Function Documentation

◆ BeforeDelete()

virtual void SMESH_subMeshEventListener::BeforeDelete ( SMESH_subMesh ,
SMESH_subMeshEventListenerData  
)
virtualinherited

◆ Delete()

static void MeshEditor_I::TSearchersDeleter::Delete ( )
static

◆ GetName()

const char* SMESH_subMeshEventListener::GetName ( ) const
inherited

◆ IsDeletable()

bool SMESH_subMeshEventListener::IsDeletable ( ) const
inherited

◆ ProcessEvent()

void MeshEditor_I::TSearchersDeleter::ProcessEvent ( const int  ,
const int  eventType,
SMESH_subMesh sm,
SMESH_subMeshEventListenerData ,
const SMESH_Hypothesis  
)
virtual

set self on all submeshes and delete theNodeSearcher if other mesh is set

Reimplemented from SMESH_subMeshEventListener.

References SMESH_subMesh::COMPUTE_EVENT, and SMESH_subMesh::GetFather().

◆ Set()

◆ Unset()

void MeshEditor_I::TSearchersDeleter::Unset ( SMESH_Mesh mesh)

Field Documentation

◆ myBusySM

std::set<SMESH_subMesh*> SMESH_subMeshEventListener::myBusySM
mutableprivateinherited

to avoid infinite recursion via events

◆ myIsDeletable

bool SMESH_subMeshEventListener::myIsDeletable
privateinherited

if true, it will be deleted by SMESH_subMesh

◆ myMesh

SMESH_Mesh* MeshEditor_I::TSearchersDeleter::myMesh

◆ myMeshPartIOR

string MeshEditor_I::TSearchersDeleter::myMeshPartIOR

Constructor.

◆ myName

const char* SMESH_subMeshEventListener::myName
privateinherited

identifier