MGIS 3.1.0
Loading...
Searching...
No Matches
EvaluatorConcept.ixx File Reference

Implementation of the helpers associated with the EvaluatorConcept concept. More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

constexpr bool mgis::function::checkMatchingSpaces (AbstractErrorHandler &ctx, const EvaluatorConcept auto &e1, const EvaluatorConcept auto &e2)
 check if the given evaluators share the same space
template<EvaluatorConcept EvaluatorType>
constexpr decltype(auto) mgis::function::internals::disambiguateGetSpace (const EvaluatorType &e)
 This helper function allows to disambiguate the call to the getSpace function.
template<EvaluatorConcept EvaluatorType>
constexpr bool mgis::function::internals::disambiguateCheck (AbstractErrorHandler &eh, const EvaluatorType &e)
 This helper function allows to disambiguate the call to the check function.
template<EvaluatorConcept EvaluatorType>
constexpr mgis::size_type mgis::function::internals::disambiguateGetNumberOfComponents (const EvaluatorType &e)
 This helper function allows to disambiguate the call to the getNumberOfComponents function.

Detailed Description

Implementation of the helpers associated with the EvaluatorConcept concept.

Author
Thomas Helfer
Date
21/05/2025

Function Documentation

◆ checkMatchingSpaces()

bool mgis::function::checkMatchingSpaces ( AbstractErrorHandler & ctx,
const EvaluatorConcept auto & e1,
const EvaluatorConcept auto & e2 )
nodiscardconstexpr

check if the given evaluators share the same space

implementation of the checkMatchingSpaces function

Parameters
[in]ctxerror handler used to report the errors
[in]e1first evaluator
[in]e2second evaluator
Returns
true if the two evaluators share the same space
Note
if the spaces of the two evaluators are not equivalent, the error message "unmatched quadrature spaces" is registered in the error handler and the call returns false.

◆ disambiguateCheck()

template<EvaluatorConcept EvaluatorType>
bool mgis::function::internals::disambiguateCheck ( AbstractErrorHandler & eh,
const EvaluatorType & e )
nodiscardconstexpr

This helper function allows to disambiguate the call to the check function.

forwards the call to the check function of the evaluator

Template Parameters
EvaluatorTypeevaluator type
Parameters
[in]eherror handler
[in]eevaluator
Returns
true if the values computed by the evaluator are valid

◆ disambiguateGetNumberOfComponents()

template<EvaluatorConcept EvaluatorType>
mgis::size_type mgis::function::internals::disambiguateGetNumberOfComponents ( const EvaluatorType & e)
nodiscardconstexpr

This helper function allows to disambiguate the call to the getNumberOfComponents function.

forwards the call to the getNumberOfComponents function

Template Parameters
EvaluatorTypeevaluator type
Parameters
[in]eevaluator
Returns
the number of components of the values returned by the evaluator

◆ disambiguateGetSpace()

template<EvaluatorConcept EvaluatorType>
decltype(auto) mgis::function::internals::disambiguateGetSpace ( const EvaluatorType & e)
constexpr

This helper function allows to disambiguate the call to the getSpace function.

forwards the call to the getSpace function of the evaluator

Template Parameters
EvaluatorTypeevaluator type
Parameters
[in]eevaluator
Returns
the space on which the evaluator is defined