Workspace 6.21.5
|
Element criterion that will pass for all elements. More...
#include <Mesh/Geometry/elementcriterionallpass.h>
Public Member Functions | |
ElementCriterionAllPass * | clone () const override |
void | destroy () override |
bool | pass (const Element &element) const override |
Public Member Functions inherited from ElementCriterion | |
~ElementCriterion () override=default | |
ElementCriterion * | clone () const override=0 |
virtual void | destroy ()=0 |
virtual bool | pass (const Element &element) const =0 |
virtual void | postVisits () |
virtual bool | preVisits (MeshModel &model) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Observable | |
virtual | ~Observable () |
void | attachObserver (Observer &observer) |
void | destroy () |
void | detachObserver (Observer &observer) |
void | notifyEvent (const ObservableEvent &event) |
Additional Inherited Members | |
Protected Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
This class has little purpose on its own other than as a sensible default criterion in some situations.
|
overridevirtual |
We redeclare this function only so that the more derived return type is available without casting.
Implements ElementCriterion.
|
overridevirtual |
Destroys the object. This function is usually implemented by calling operator delete on the object.
Implements ElementCriterion.
|
overridevirtual |
element | The element for which the criterion is to be tested. |
The usual sequence for a client is to first call preVisits() and check that the return value is true. Then, they call pass() for all the elements in a model or for some subset of elements that interests them (eg just one type of element). The client must call postVisits() when they will no longer be calling pass() anymore. The model that was passed to preVisits() must remain valid until postVisits() returns.
For the ElementCriterionAllPass class, this function always returns true regardless of the element passed to it.
Implements ElementCriterion.