|
MGIS 3.1.0
|
a modifier building a UnaryOperation2 from a callable object which is not stored in the modifier More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/UnaryOperation.hxx>
Public Types | |
| using | Tag = ::mgis::function::EvaluatorModifierTag |
| this alias allows to match the Evaluator Modifier concept | |
Public Member Functions | |
| template<typename EvaluatorType> requires ((EvaluatorConcept<std::decay_t<EvaluatorType>>)&&( std::invocable<CallableType, evaluator_result<std::decay_t<EvaluatorType>>>)) | |
| MGIS_HOST_DEVICE constexpr auto | operator() (EvaluatorType &&) const |
| apply the unary operation to an evaluator | |
a modifier building a UnaryOperation2 from a callable object which is not stored in the modifier
This helper is a stateless type, which allows the predefined modifiers of this file to be defined as constexpr global variables.
| CallableType | type of the unary operation, which must be trivially default constructible |
|
constexpr |
apply the unary operation to an evaluator
builds a UnaryOperation2 from the given evaluator
| EvaluatorType | type of the evaluator, which may be a qualified type |
| [in] | e | evaluator whose values are modified |