MGIS
Loading...
Searching...
No Matches
mgis::function::FixedSizeModifier< EvaluatorType, N > Struct Template Reference

an evaluator returning the values of a function view as a fixed size span or a scalar More...

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

Inheritance diagram for mgis::function::FixedSizeModifier< EvaluatorType, N >:
mgis::PreconditionsChecker< FixedSizeModifier< EvaluatorType, N > >

Public Types

using Space = evaluator_space< EvaluatorType >
 

Public Member Functions

constexpr FixedSizeModifier (const EvaluatorType &)
 constructor
 
template<bool doPreconditionsCheck>
requires (N > 0)
constexpr FixedSizeModifier (const PreconditionsCheck< doPreconditionsCheck > &, const EvaluatorType &)
 constructor
 
constexpr bool check (AbstractErrorHandler &) const
 perform consistency checks
 
decltype(autogetSpace () const
 return the underlying space
 
constexpr size_type getNumberOfComponents () const
 
constexpr auto operator() (const element_index< Space > &) const
 call operator
 
constexpr auto operator() (const element_workspace< Space > &, const element_index< Space > &) const
 call operator
 
constexpr auto operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) const
 call operator
 
constexpr auto operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) const
 call operator
 

Static Public Member Functions

static constexpr bool checkPreconditions (AbstractErrorHandler &, const EvaluatorType &)
 method checking that the precondition of the constructor are met.
 

Detailed Description

template<EvaluatorConcept EvaluatorType, size_type N>
requires (N > 0)
struct mgis::function::FixedSizeModifier< EvaluatorType, N >

an evaluator returning the values of a function view as a fixed size span or a scalar

Template Parameters
Spacefunctional space
Nsize of the returned value

Constructor & Destructor Documentation

◆ FixedSizeModifier() [1/2]

template<EvaluatorConcept EvaluatorType, size_type N>
requires (N > 0)
constexpr mgis::function::FixedSizeModifier< EvaluatorType, N >::FixedSizeModifier ( const EvaluatorType &  e)
constexpr

constructor

Parameters
[in]valuesfunction

◆ FixedSizeModifier() [2/2]

template<EvaluatorConcept EvaluatorType, size_type N>
requires (N > 0)
template<bool doPreconditionsCheck>
requires (N > 0)
constexpr mgis::function::FixedSizeModifier< EvaluatorType, N >::FixedSizeModifier ( const PreconditionsCheck< doPreconditionsCheck > &  pcheck,
const EvaluatorType &  e 
)
constexpr

constructor

Parameters
[in]pcheckobject stating if preconditions must be checked
[in]valuesfunction

Member Function Documentation

◆ checkPreconditions()

template<EvaluatorConcept EvaluatorType, size_type N>
requires (N > 0)
constexpr bool mgis::function::FixedSizeModifier< EvaluatorType, N >::checkPreconditions ( AbstractErrorHandler eh,
const EvaluatorType &  values 
)
staticconstexpr

method checking that the precondition of the constructor are met.

Parameters
[in]eherror handler
[in]eevaluator

◆ getNumberOfComponents()

template<EvaluatorConcept EvaluatorType, size_type N>
requires (N > 0)
constexpr size_type mgis::function::FixedSizeModifier< EvaluatorType, N >::getNumberOfComponents ( ) const
constexpr
Returns
the number of components

◆ operator()() [1/4]

template<EvaluatorConcept EvaluatorType, size_type N>
constexpr auto mgis::function::FixedSizeModifier< EvaluatorType, N >::operator() ( const cell_index< Space > &  ,
const quadrature_point_index< Space > &   
) const
constexpr

call operator

Parameters
[in]ecell index
[in]iintegration point index

◆ operator()() [2/4]

template<EvaluatorConcept EvaluatorType, size_type N>
requires ((internals::EvaluatorResultQuery<EvaluatorType>::b4) && (isEvaluatorResultTypeMappable<EvaluatorType>))
constexpr auto mgis::function::FixedSizeModifier< EvaluatorType, N >::operator() ( const cell_workspace< Space > &  wk,
const cell_index< Space > &  e,
const quadrature_point_index< Space > &  i 
) const
constexpr

call operator

Parameters
[in]ecell index
[in]iintegration point index

◆ operator()() [3/4]

template<EvaluatorConcept EvaluatorType, size_type N>
requires ((internals::EvaluatorResultQuery<EvaluatorType>::b1) && (isEvaluatorResultTypeMappable<EvaluatorType>))
constexpr auto mgis::function::FixedSizeModifier< EvaluatorType, N >::operator() ( const element_index< Space > &  i) const
constexpr

call operator

Parameters
[in]iintegration point index

◆ operator()() [4/4]

template<EvaluatorConcept EvaluatorType, size_type N>
requires ((internals::EvaluatorResultQuery<EvaluatorType>::b2) && (isEvaluatorResultTypeMappable<EvaluatorType>))
constexpr auto mgis::function::FixedSizeModifier< EvaluatorType, N >::operator() ( const element_workspace< Space > &  wk,
const element_index< Space > &  i 
) const
constexpr

call operator

Parameters
[in]iintegration point index

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