MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::FunctionConcept Concept Reference

a concept that must satisfy a function More...

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

Concept definition

template<typename FunctionType>
std::decay_t<decltype(getSpace(std::declval<FunctionType>()))>>)&&
(requires(const FunctionType& e) {
{ getNumberOfComponents(e) } -> std::same_as<mgis::size_type>;
}) &&
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::result_type1,
typename internals::FunctionResultQuery<
FunctionType>::result_type>
: true) &&
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::result_type2,
typename internals::FunctionResultQuery<
FunctionType>::result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b3
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::result_type3,
typename internals::FunctionResultQuery<
FunctionType>::result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b4
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::result_type4,
typename internals::FunctionResultQuery<
FunctionType>::result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b1
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::const_result_type1,
typename internals::FunctionResultQuery<
FunctionType>::const_result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b2
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::const_result_type2,
typename internals::FunctionResultQuery<
FunctionType>::const_result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b3
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::const_result_type3,
typename internals::FunctionResultQuery<
FunctionType>::const_result_type>
: true) &&
(internals::FunctionResultQuery<FunctionType>::b4
? std::same_as<typename internals::FunctionResultQuery<
FunctionType>::const_result_type4,
typename internals::FunctionResultQuery<
FunctionType>::const_result_type>
: true) &&
(internals::FunctionResultTypeTraits<
typename internals::FunctionResultQuery<FunctionType>::result_type>::
is_specialized) &&
((LightweightViewConcept<FunctionType>) || (requires(FunctionType & f) {
{ view(f) } -> LightweightViewConcept;
}))
MGIS_HOST_DEVICE constexpr mgis::size_type getNumberOfComponents(const BinaryOperationModifier< CallableType, FirstEvaluatorType, SecondEvaluatorType > &)
return the number of components of the values returned by a binary operation
Definition BinaryOperation.ixx:80
a concept that must satisfy a function
Definition FunctionConcept.hxx:453
a concept describing a space
Definition SpaceConcept.hxx:216
STL namespace.

Detailed Description

a concept that must satisfy a function

A function is an object which:

  • is defined on a space, i.e. for which the getSpace function is available,
  • provides the number of components of the values it returns through the getNumberOfComponents function,
  • can be called with either an element index, or an element workspace and an element index, or a cell index and a quadrature point index, or a cell workspace, a cell index and a quadrature point index. The value returned is either a scalar value, a std::span or a std::array,
  • is either a lightweight view or provides a view function returning such a view.
Template Parameters
FunctionTypefunction type