|
MGIS 3.1.0
|
a base class to construct an evaluator by applying a binary operation on the results of two evaluators More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/BinaryOperationEvaluatorBase.hxx>
Public Types | |
| using | Space = evaluator_space<FirstEvaluatorType> |
| type of the space on which the two evaluators are defined | |
Public Member Functions | |
| constexpr | BinaryOperationEvaluatorBase (const FirstEvaluatorType &, const SecondEvaluatorType &) |
| constructor | |
| constexpr | BinaryOperationEvaluatorBase (const BinaryOperationEvaluatorBase &) |
| copy constructor | |
| constexpr | BinaryOperationEvaluatorBase (BinaryOperationEvaluatorBase &&) |
| 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 | |
| constexpr auto | operator() (const element_workspace< Space > &, const element_index< Space > &) const |
| call operator | |
| constexpr auto | operator() (const cell_index< Space >, const quadrature_point_index< Space >) const |
| call operator | |
| constexpr auto | operator() (const cell_workspace< Space > &, const cell_index< Space >, const quadrature_point_index< Space >) const |
| call operator | |
Static Public Attributes | |
| static constexpr auto | isElementEvaluator |
| true if both evaluators match the ElementEvaluatorConcept | |
| static constexpr auto | isQuadratureEvaluator |
| true if both evaluators match the QuadratureEvaluatorConcept | |
a base class to construct an evaluator by applying a binary operation on the results of two evaluators
This class is meant to be used with the curiously recurring template pattern: the child class gives the binary operation through an apply member function taking the values returned by the two evaluators and returning the values of the resulting evaluator.
The call operators of this class forward the values computed by the two evaluators to the apply member function of the child class: only the call operators which match the way both evaluators can be called are available.
| Child | type of the class deriving from this base class |
| FirstEvaluatorType | evaluator used to compute the first argument of the binary operation |
| SecondEvaluatorType | evaluator used to compute the second argument of the binary operation |
|
constexpr |
constructor
constructor, storing a copy of each of the two evaluators
| [in] | e1 | evaluator used to compute the first argument of the binary operation, a copy of it is stored in the object |
| [in] | e2 | evaluator used to compute the second argument of the binary operation, a copy of it is stored in the object |
|
constexprdefault |
copy constructor
default copy constructor
|
constexprdefault |
move constructor
default move constructor
|
nodiscardconstexpr |
perform consistency checks
implementation of the check member function
| [in] | ctx | error handler used to report the errors |
The spaces of the two evaluators are compared first, then the values computed by each evaluator are checked. The first failing check stops the process and registers the associated error message in the error handler.
|
nodiscardconstexpr |
return the underlying space
|
nodiscardconstexpr |
call operator
| [in] | e | cell index |
| [in] | i | quadrature point index of the cell of index e |
|
nodiscardconstexpr |
call operator
| [in] | wk | workspace of the cell of index e |
| [in] | e | cell index |
| [in] | i | quadrature point index of the cell of index e |
|
nodiscardconstexpr |
call operator
| [in] | i | index of the element on which the values are computed |
|
nodiscardconstexpr |
call operator
| [in] | wk | workspace of the element on which the values are computed |
| [in] | i | index of the integration point of this element |
|
staticconstexpr |
true if both evaluators match the ElementEvaluatorConcept
|
staticconstexpr |
true if both evaluators match the QuadratureEvaluatorConcept