MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::internals::unary_operation_modifier< CallableType > Struct Template Reference

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>

Public Types

using Tag = ::mgis::function::EvaluatorModifierTag
 this alias allows to match the Evaluator Modifier concept

Public Member Functions

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

Detailed Description

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
CallableTypetype of the unary operation, which must be copy constructible

Constructor & Destructor Documentation

◆ unary_operation_modifier()

template<typename CallableType>
mgis::function::internals::unary_operation_modifier< CallableType >::unary_operation_modifier ( const CallableType & c)
constexpr

constructor

constructor, storing a copy of the callable object

Parameters
[in]cunary operation, a copy of it is stored in the modifier

Member Function Documentation

◆ 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>>>))
auto mgis::function::internals::unary_operation_modifier< CallableType >::operator() ( EvaluatorType && e) const
constexpr

apply the unary operation to an evaluator

builds a UnaryOperation from the given evaluator

Template Parameters
EvaluatorTypetype of the evaluator, which may be a qualified type
Parameters
[in]eevaluator 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: