a modifier building a UnaryOperation from a callable object which is stored in the modifier itself
More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/UnaryOperation.hxx>
|
| constexpr | unary_operation_modifier (const CallableType &) |
| | constructor
|
template<typename EvaluatorType>
requires ((EvaluatorConcept<std::decay_t<EvaluatorType>>)&&( std::invocable<CallableType, evaluator_result<std::decay_t<EvaluatorType>>>)) |
| constexpr auto | operator() (EvaluatorType &&) const |
| | apply the unary operation to an evaluator
|
template<typename CallableType>
struct mgis::function::internals::unary_operation_modifier< CallableType >
a modifier building a UnaryOperation from a callable object which is stored in the modifier itself
- Template Parameters
-
| CallableType | type of the unary operation, which must be copy constructible |
◆ unary_operation_modifier()
template<typename CallableType>
constructor
constructor, storing a copy of the callable object
- Parameters
-
| [in] | c | unary operation, a copy of it is stored in the modifier |
◆ operator()()
template<typename CallableType>
requires ((EvaluatorConcept<std::decay_t<EvaluatorType>>)&&( std::invocable<CallableType,
evaluator_result<std::decay_t<EvaluatorType>>>))
template<typename EvaluatorType>
requires ((EvaluatorConcept<std::decay_t<EvaluatorType>>)&&( std::invocable<CallableType,
evaluator_result<std::decay_t<EvaluatorType>>>))
apply the unary operation to an evaluator
builds a UnaryOperation from the given evaluator
- Template Parameters
-
| EvaluatorType | type of the evaluator, which may be a qualified type |
- Parameters
-
| [in] | e | evaluator whose values are modified |
- Returns
- a UnaryOperation storing a copy of the callable object and the given evaluator
The documentation for this struct was generated from the following files: