|
MGIS 3.1.0
|
an evaluator applying a unary operation to the values returned by another evaluator, without storing this operation More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/UnaryOperation.hxx>
Public Member Functions | |
| MGIS_HOST_DEVICE constexpr auto | apply (const evaluator_result< EvaluatorType > &) const |
| apply the modifier | |
| Public Member Functions inherited from mgis::function::EvaluatorModifierBase< UnaryOperation2< CallableType, EvaluatorType >, EvaluatorType > | |
| constexpr | EvaluatorModifierBase (const EvaluatorType &) |
| 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 | |
Additional Inherited Members | |
| Public Types inherited from mgis::function::EvaluatorModifierBase< UnaryOperation2< CallableType, EvaluatorType >, EvaluatorType > | |
| using | Space |
| type of the space on which the underlying evaluator is defined | |
| Static Public Member Functions inherited from mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType > | |
| static constexpr size_type | getNumberOfComponents () MGIS_NOEXCEPT |
| return the number of components | |
| Protected Attributes inherited from mgis::function::EvaluatorModifierBase< UnaryOperation2< CallableType, EvaluatorType >, EvaluatorType > | |
| EvaluatorType | evaluator |
| underlying evaluator | |
an evaluator applying a unary operation to the values returned by another evaluator, without storing this operation
This class behaves as UnaryOperation except that the callable object is not stored in the instance: it must be trivially default constructible and a default constructed object is created each time the values are computed. Such a modifier is thus as light as the underlying evaluator, which allows constexpr modifiers such as absolute_value or negate to be defined.
The constructor inherited from EvaluatorModifierBase only takes the underlying evaluator as an argument.
| CallableType | type of the unary operation, which must be trivially default constructible and callable with the values returned by the evaluator |
| EvaluatorType | type of the evaluator whose values are modified |
|
constexpr |
apply the modifier
| [in] | values | values computed by the underlying evaluator at a given integration point |