|
MGIS 3.1.0
|
a modifier 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/FixedSizeView.hxx>
Public Types | |
| using | Space = function_space<FunctionType> |
| type of the space on which the underlying function is defined | |
| using | mutable_value_type |
| value returned by the non-const call operators: a mutable reference to a scalar if N is equal to 1, a mutable fixed size span otherwise | |
| using | ConstructorArgumentType |
| a simple alias used to workaround what seems to be a bug in gcc 16.x: the underlying function is passed to the constructors by value if it is a lightweight view and by reference otherwise | |
Public Member Functions | |
| constexpr | FixedSizeView (ConstructorArgumentType) |
| constructor, checking the preconditions | |
| template<bool doPreconditionsCheck> requires (N > 0) | |
| constexpr | FixedSizeView (const PreconditionsCheck< doPreconditionsCheck > &, ConstructorArgumentType) |
| constructor | |
| constexpr bool | check (AbstractErrorHandler &) const |
| perform consistency checks | |
| constexpr decltype(auto) | getSpace () const |
| return the underlying space | |
| constexpr size_type | getNumberOfComponents () const MGIS_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 mutable_value_type | operator() (const element_index< Space > &) |
| call operator returning mutable values | |
| constexpr mutable_value_type | operator() (const element_workspace< Space > &, const element_index< Space > &) |
| call operator returning mutable values | |
| constexpr mutable_value_type | operator() (const cell_index< Space > &, const quadrature_point_index< Space > &) |
| call operator returning mutable values | |
| constexpr mutable_value_type | operator() (const cell_workspace< Space > &, const cell_index< Space > &, const quadrature_point_index< Space > &) |
| call operator returning mutable values | |
Static Public Member Functions | |
| static constexpr bool | checkPreconditions (AbstractErrorHandler &, const FunctionType &) |
| method checking that the preconditions of the constructor are met | |
a modifier returning the values of a function view as a fixed size span or a scalar
The view is built from a function with exactly N components. Its call operators return the values associated with an integration point:
Only the call operators which match the way the underlying function can be called are available.
| FunctionType | type of the underlying function |
| N | number of components of the values returned by the view, which must be strictly positive |
| using mgis::function::FixedSizeView< FunctionType, N >::ConstructorArgumentType |
a simple alias used to workaround what seems to be a bug in gcc 16.x: the underlying function is passed to the constructors by value if it is a lightweight view and by reference otherwise
| using mgis::function::FixedSizeView< FunctionType, N >::mutable_value_type |
value returned by the non-const call operators: a mutable reference to a scalar if N is equal to 1, a mutable fixed size span otherwise
|
constexpr |
constructor, checking the preconditions
| [in] | values | function used to build the view |
|
constexpr |
constructor
| doPreconditionsCheck | boolean stating if the preconditions must be checked |
| [in] | pcheck | object stating if preconditions must be checked |
| [in] | values | function used to build the view |
|
nodiscardconstexpr |
perform consistency checks
| [in] | eh | error handler used to report the errors |
|
staticconstexpr |
method checking that the preconditions of the constructor are met
| [in] | eh | error handler used to report the errors |
| [in] | values | function used to build the view |
|
nodiscardconstexpr |
|
nodiscardconstexpr |
return the underlying space
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | wk | cell workspace |
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator
| [in] | wk | cell workspace |
| [in] | e | cell index |
| [in] | i | quadrature point index |
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator returning mutable values
| [in] | wk | element workspace |
| [in] | i | integration point index |
|
nodiscardconstexpr |
call operator
| [in] | wk | element workspace |
| [in] | i | integration point index |