|
MGIS 3.1.0
|
a base class to construct a new evaluator by applying a modifier to the values returned by an existing evaluator More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/EvaluatorModifierBase.hxx>
Public Types | |
| using | Space = evaluator_space<EvaluatorType> |
| type of the space on which the underlying evaluator is defined | |
Public Member Functions | |
| constexpr | EvaluatorModifierBase (const EvaluatorType &) |
| constructor | |
| constexpr | EvaluatorModifierBase (const EvaluatorModifierBase &) |
| copy constructor | |
| constexpr | EvaluatorModifierBase (EvaluatorModifierBase &&) |
| move constructor | |
| constexpr decltype(auto) | getSpace () const |
| return the underlying space | |
| constexpr bool | check (AbstractErrorHandler &) const |
| perform consistency checks | |
| constexpr auto | operator() (const element_index< Space > &) const |
| call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class | |
| constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) const |
| call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class | |
| constexpr auto | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class | |
| constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const |
| call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class | |
Protected Attributes | |
| EvaluatorType | evaluator |
| underlying evaluator | |
a base class to construct a new evaluator by applying a modifier to the values returned by an existing evaluator
This class implements the CRTP idiom: the call operators forward the values computed by the underlying evaluator to the apply member function of the derived class, which is responsible for modifying them. Only the call operators which match the way the underlying evaluator can be called are available.
| Child | type of the derived class, which must implement an apply member function accepting the values returned by the underlying evaluator |
| EvaluatorType | type of the modified evaluator |
|
constexpr |
constructor
| [in] | e | modified evaluator |
|
nodiscardconstexpr |
perform consistency checks
| [in] | ctx | error handler used to report the errors |
|
nodiscardconstexpr |
return the underlying space
|
nodiscardconstexpr |
call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class
| [in] | wk | cell workspace |
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class
| [in] | e | element index, i.e. index of the integration point |
|
nodiscardconstexpr |
call operator: the value computed by the underlying evaluator is passed to the apply member function of the derived class
| [in] | wk | element workspace |
| [in] | e | element index, i.e. index of the integration point |