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

structure used to modify a function or an evaluator so that it returns a fixed number of components More...

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

Public Types

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

Public Member Functions

template<ViewableFunctionArgumentConcept QualifiedFunctionArgumentType>
requires (internals::checkNumberOfComponentsCompatibility< QualifiedFunctionArgumentType, N>())
constexpr auto operator() (QualifiedFunctionArgumentType &&f) const
 create a view returning a fixed number of components
template<EvaluatorConcept EvaluatorType>
requires ( checkEvaluatorNumberOfComponentsCompatibility<EvaluatorType, N>())
constexpr auto operator() (const EvaluatorType &e) const
 create a new evaluator returning a fixed number of components

Detailed Description

template<size_type N>
requires ((N > 0) && (N != dynamic_extent))
struct mgis::function::internals::fixed_size_modifier< N >

structure used to modify a function or an evaluator so that it returns a fixed number of components

Template Parameters
Nnumber of components

Member Function Documentation

◆ operator()() [1/2]

template<size_type N>
template<EvaluatorConcept EvaluatorType>
requires ( checkEvaluatorNumberOfComponentsCompatibility<EvaluatorType, N>())
auto mgis::function::internals::fixed_size_modifier< N >::operator() ( const EvaluatorType & e) const
inlineconstexpr

create a new evaluator returning a fixed number of components

Template Parameters
EvaluatorTypeevaluator type
Parameters
[in]eevaluator the new evaluator is built from
Returns
an evaluator returning the first N components of the values of the given evaluator

◆ operator()() [2/2]

template<size_type N>
template<ViewableFunctionArgumentConcept QualifiedFunctionArgumentType>
requires (internals::checkNumberOfComponentsCompatibility< QualifiedFunctionArgumentType, N>())
auto mgis::function::internals::fixed_size_modifier< N >::operator() ( QualifiedFunctionArgumentType && f) const
inlineconstexpr

create a view returning a fixed number of components

Template Parameters
QualifiedFunctionArgumentTypetype of the function, which may be a qualified type (reference, const, etc...)
Parameters
[in]ffunction the view is built from
Returns
a view of the function returning the first N components of the values of the function

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