MGIS
Loading...
Searching...
No Matches
mgis::function::TensorView< FunctionType, TensorType > Struct Template Reference

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

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

Inheritance diagram for mgis::function::TensorView< FunctionType, TensorType >:
mgis::PreconditionsChecker< TensorView< FunctionType, TensorType > >

Public Types

using Space = function_space< FunctionType >
 

Public Member Functions

constexpr TensorView (FunctionType &)
 constructor
 
template<bool doPreconditionsCheck>
constexpr TensorView (const PreconditionsCheck< doPreconditionsCheck > &, FunctionType &)
 constructor
 
constexpr bool check (AbstractErrorHandler &) const
 perform consistency checks
 
constexpr const Space & getSpace () const
 return the underlying space
 
constexpr size_type getNumberOfComponents () const noexcept
 
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
 
constexpr auto operator() (const element_index< Space > &)
 call operator
 
constexpr auto operator() (const element_workspace< Space > &, const element_index< Space > &)
 call operator
 
constexpr auto operator() (const cell_index< Space > &, const quadrature_point_index< Space > &)
 call operator
 
constexpr auto operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &)
 call operator
 

Static Public Member Functions

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

Detailed Description

template<FunctionConcept FunctionType, TensorConcept TensorType>
struct mgis::function::TensorView< FunctionType, TensorType >

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

Template Parameters
FunctionTypeunderlying function type
TensorTypetype of the tensor

Constructor & Destructor Documentation

◆ TensorView() [1/2]

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr mgis::function::TensorView< FunctionType, TensorType >::TensorView ( FunctionType values)
constexpr

constructor

Parameters
[in]valuesfunction

◆ TensorView() [2/2]

template<FunctionConcept FunctionType, TensorConcept TensorType>
template<bool doPreconditionsCheck>
constexpr mgis::function::TensorView< FunctionType, TensorType >::TensorView ( const PreconditionsCheck< doPreconditionsCheck > &  pcheck,
FunctionType values 
)
constexpr

constructor

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

Member Function Documentation

◆ checkPreconditions()

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr bool mgis::function::TensorView< FunctionType, TensorType >::checkPreconditions ( AbstractErrorHandler eh,
const FunctionType values 
)
staticconstexpr

method checking that the precondition of the constructor are met.

Parameters
[in]valuesfunction

◆ getNumberOfComponents()

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr size_type mgis::function::TensorView< FunctionType, TensorType >::getNumberOfComponents ( ) const
constexprnoexcept
Returns
the number of components

◆ operator()() [1/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const cell_index< Space > &  ,
const quadrature_point_index< Space > &   
)
constexpr

call operator

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

◆ operator()() [2/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const cell_index< Space > &  ,
const quadrature_point_index< Space > &   
) const
constexpr

call operator

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

◆ operator()() [3/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b4) && (isFunctionResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const cell_workspace< Space > &  wk,
const cell_index< Space > &  e,
const quadrature_point_index< Space > &  i 
)
constexpr

call operator

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

◆ operator()() [4/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b4) && (isFunctionConstResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::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()() [5/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b1) && (isFunctionResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const element_index< Space > &  i)
constexpr

call operator

Parameters
[in]iintegration point index

◆ operator()() [6/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b1) && (isFunctionConstResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const element_index< Space > &  i) const
constexpr

call operator

Parameters
[in]iintegration point index

◆ operator()() [7/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b2) && (isFunctionResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::operator() ( const element_workspace< Space > &  wk,
const element_index< Space > &  i 
)
constexpr

call operator

Parameters
[in]iintegration point index

◆ operator()() [8/8]

template<FunctionConcept FunctionType, TensorConcept TensorType>
requires ((internals::FunctionResultQuery<FunctionType>::b2) && (isFunctionConstResultTypeMappable<FunctionType>))
constexpr auto mgis::function::TensorView< FunctionType, TensorType >::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: