|
MGIS 3.1.0
|
helper applying a binary operation which is not stored in the helper to one or two evaluators More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/BinaryOperation.hxx>
Public Member Functions | |
| template<typename SecondEvaluatorType> requires (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>) | |
| MGIS_HOST_DEVICE constexpr auto | operator() (SecondEvaluatorType &&) const |
| partially apply the binary operation to the evaluator of its second argument | |
| template<typename FirstEvaluatorType, typename SecondEvaluatorType> requires ((EvaluatorConcept<std::decay_t<FirstEvaluatorType>>)&& // (EvaluatorConcept<std::decay_t<SecondEvaluatorType>>)&& // (std::invocable< CallableType, evaluator_result<std::decay_t<FirstEvaluatorType>>, evaluator_result<std::decay_t<SecondEvaluatorType>>>)) | |
| MGIS_HOST_DEVICE constexpr auto | operator() (FirstEvaluatorType &&, SecondEvaluatorType &&) const |
| build the evaluator of the result of the binary operation | |
helper applying a binary operation which is not stored in the helper to one or two evaluators
This helper behaves as binary_operation_modifier except that it is a stateless type: the binary operation is created when the values are computed, which allows the predefined modifiers of this file to be defined as constexpr global variables.
| CallableType | type of the binary operation, which must be trivially default constructible |
|
constexpr |
build the evaluator of the result of the binary operation
builds a BinaryOperationModifier2 from the two evaluators
| FirstEvaluatorType | type of the evaluator of the first argument, which may be a qualified type |
| SecondEvaluatorType | type of the evaluator of the second argument, which may be a qualified type |
| [in] | e1 | evaluator used to compute the first argument |
| [in] | e2 | evaluator used to compute the second argument |
|
constexpr |
partially apply the binary operation to the evaluator of its second argument
partially applies the operation to the given evaluator
| SecondEvaluatorType | type of the evaluator, which may be a qualified type |
| [in] | e2 | evaluator used to compute the second argument |