|
MGIS 3.1.0
|
partial application of a binary operation to the evaluator of its second argument More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/BinaryOperation.hxx>
Public Types | |
| using | Tag = ::mgis::function::EvaluatorModifierTag |
| this alias allows to match the Evaluator Modifier concept | |
Public Member Functions | |
| MGIS_HOST_DEVICE constexpr | BinaryOperatorCurrying (const CallableType &, const SecondEvaluatorType &) |
| constructor | |
| template<typename FirstEvaluatorType> requires ( (EvaluatorConcept<std::decay_t<FirstEvaluatorType>>)&& // (std::invocable<CallableType, evaluator_result<std::decay_t<FirstEvaluatorType>>, evaluator_result<SecondEvaluatorType>>)) | |
| MGIS_HOST_DEVICE constexpr auto | operator() (FirstEvaluatorType &&) const |
| apply the partially applied binary operation to the evaluator of its first argument | |
partial application of a binary operation to the evaluator of its second argument
This helper matches the EvaluatorModifierConcept concept: applying it to the evaluator of the first argument, with operator| for instance, gives the evaluator of the result of the binary operation. Both the callable object and the evaluator of the second argument are stored in the object.
| CallableType | type of the binary operation, which must be copy constructible |
| SecondEvaluatorType | type of the evaluator used to compute the second argument of the operation |
|
constexpr |
constructor
stores copies of the callable object and of the evaluator
| [in] | c | binary operation, a copy of which is stored in the object |
| [in] | e | evaluator of the second argument of the operation, a copy of which is stored in the object |
|
constexpr |
apply the partially applied binary operation to the evaluator of its first argument
builds a BinaryOperationModifier from the given evaluator
| FirstEvaluatorType | type of the evaluator, which may be a qualified type |
| [in] | e1 | evaluator used to compute the first argument of the operation |