Version: 9.16.0
SMESH::NotifyerAndWaiter Struct Reference

Object notified on change of base objects and notifying dependent objects in its turn. More...

#include <SMESH_Filter_i.hxx>

Inheritance diagram for SMESH::NotifyerAndWaiter:

Public Member Functions

virtual void OnBaseObjModified (NotifyerAndWaiter *, bool)
 
void Modified (bool removed=false, NotifyerAndWaiter *who=0)
 calls OnBaseObjModified(), if who != this, and myWaiters[i]->Modified(who) More...
 
void AddModifWaiter (NotifyerAndWaiter *waiter)
 Stores an object to be notified on change of predicate. More...
 
void RemoveModifWaiter (NotifyerAndWaiter *waiter)
 Removes an object to be notified on change of predicate. More...
 
bool ContainModifWaiter (NotifyerAndWaiter *waiter)
 Checks if a waiter is among myWaiters, maybe nested. More...
 

Data Fields

std::list< NotifyerAndWaiter * > myWaiters
 

Detailed Description

Object notified on change of base objects and notifying dependent objects in its turn.

This interface is used to track the following dependencies:

  • GroupOnFiler depending on Filter predicates
  • Filter depending on a Group via FT_BelongToMeshGroup predicate

Member Function Documentation

◆ AddModifWaiter()

void SMESH::NotifyerAndWaiter::AddModifWaiter ( NotifyerAndWaiter waiter)

Stores an object to be notified on change of predicate.

References myWaiters.

Referenced by SMESH::Filter_i::FindBaseObjects().

◆ ContainModifWaiter()

bool SMESH::NotifyerAndWaiter::ContainModifWaiter ( NotifyerAndWaiter waiter)

Checks if a waiter is among myWaiters, maybe nested.

References myWaiters.

◆ Modified()

void SMESH::NotifyerAndWaiter::Modified ( bool  removed = false,
NotifyerAndWaiter who = 0 
)

◆ OnBaseObjModified()

virtual void SMESH::NotifyerAndWaiter::OnBaseObjModified ( NotifyerAndWaiter ,
bool   
)
virtual

Reimplemented in SMESH::Filter_i.

Referenced by Modified().

◆ RemoveModifWaiter()

void SMESH::NotifyerAndWaiter::RemoveModifWaiter ( NotifyerAndWaiter waiter)

Removes an object to be notified on change of predicate.

References myWaiters.

Field Documentation

◆ myWaiters

std::list<NotifyerAndWaiter*> SMESH::NotifyerAndWaiter::myWaiters