MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::EvaluatorModifiersGroup< Ms > Struct Template Reference

a class meant to group modifiers, allowing modifiers composability More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/EvaluatorModifierConcept.hxx>

Public Types

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

Public Member Functions

constexpr EvaluatorModifiersGroup (Ms... ms)
 constructor from an explicit list of modifiers
constexpr EvaluatorModifiersGroup (std::tuple< Ms... > g)
 constructor from a tuple of modifiers
constexpr auto operator() (const EvaluatorConcept auto &e) const
 call operator applying each modifier of the group

Public Attributes

const std::tuple< Ms... > group
 list of the grouped modifiers

Detailed Description

template<EvaluatorModifierConcept... Ms>
requires (sizeof...(Ms) > 0)
struct mgis::function::EvaluatorModifiersGroup< Ms >

a class meant to group modifiers, allowing modifiers composability

The modifiers are applied from left to right: the first modifier of the group is applied to the evaluator, the second one to the resulting evaluator, and so on.

Template Parameters
Mstypes of the grouped modifiers, at least one

Constructor & Destructor Documentation

◆ EvaluatorModifiersGroup() [1/2]

template<EvaluatorModifierConcept... Ms>
mgis::function::EvaluatorModifiersGroup< Ms >::EvaluatorModifiersGroup ( Ms... ms)
inlineconstexpr

constructor from an explicit list of modifiers

Parameters
[in]msmodifiers, which are applied from left to right

◆ EvaluatorModifiersGroup() [2/2]

template<EvaluatorModifierConcept... Ms>
mgis::function::EvaluatorModifiersGroup< Ms >::EvaluatorModifiersGroup ( std::tuple< Ms... > g)
inlineconstexpr

constructor from a tuple of modifiers

Parameters
[in]gtuple of modifiers, which is applied from left to right

Member Function Documentation

◆ operator()()

template<EvaluatorModifierConcept... Ms>
auto mgis::function::EvaluatorModifiersGroup< Ms >::operator() ( const EvaluatorConcept auto & e) const
inlineconstexpr

call operator applying each modifier of the group

Parameters
[in]eevaluator the modifiers of the group are applied to
Returns
the evaluator resulting from applying all the modifiers of the group to the given evaluator

The documentation for this struct was generated from the following file: