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

concept stating that an evaluator can be assigned to a function More...

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

Concept definition

template<typename EvaluatorType, typename FunctionType>
(std::same_as<function_space<FunctionType>,
const evaluator_result<EvaluatorType>& rhs) { lhs = rhs; }) ||
assign_value(lhs, rhs);
}))
constexpr void assign_value(std::span< real >, const auto &)
assigns to a span of dynamic size the values of any container which can be iterated over
Definition Algorithms.ixx:86
std::decay_t< decltype(getSpace(std::declval< EvaluatorType >()))> evaluator_space
alias giving the type of the space on which an evaluator is defined
Definition EvaluatorConcept.hxx:357
typename internals::EvaluatorResultQuery< EvaluatorType >::type evaluator_result
type of the result of an evaluator, i.e. the type of the constant values returned by the evaluator,...
Definition EvaluatorConcept.hxx:368
typename internals::FunctionResultQuery< FunctionType >::result_type function_result
type of the result of a function, i.e. the type of the values returned by the function,...
Definition FunctionConcept.hxx:659
a concept that must satisfy an evaluator
Definition EvaluatorConcept.hxx:295
a concept that must satisfy a function
Definition FunctionConcept.hxx:453
concept stating that an evaluator can be assigned to a function
Definition Algorithms.hxx:193

Detailed Description

concept stating that an evaluator can be assigned to a function

This is the case if both objects are defined on the same space and if the values returned by the evaluator can be assigned to those returned by the function, directly or using one of the assign_value helpers.

Template Parameters
EvaluatorTypeevaluator type
FunctionTypefunction type