MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::internals::BinaryOperationModifierBase< CallableType, FirstEvaluatorType, SecondEvaluatorType > Struct Template Reference

helper base class giving the number of components of the values returned by a binary operation applied to two evaluators More...

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

Inheritance diagram for mgis::function::internals::BinaryOperationModifierBase< CallableType, FirstEvaluatorType, SecondEvaluatorType >:
mgis::function::BinaryOperationModifier< CallableType, FirstEvaluatorType, SecondEvaluatorType > mgis::function::BinaryOperationModifier2< CallableType, FirstEvaluatorType, SecondEvaluatorType >

Static Public Member Functions

static MGIS_HOST_DEVICE constexpr size_type getNumberOfComponents () MGIS_NOEXCEPT
 return the number of components

Detailed Description

template<typename CallableType, EvaluatorConcept FirstEvaluatorType, EvaluatorConcept SecondEvaluatorType>
struct mgis::function::internals::BinaryOperationModifierBase< CallableType, FirstEvaluatorType, SecondEvaluatorType >

helper base class giving the number of components of the values returned by a binary operation applied to two evaluators

The number of components is the compile-time size of the type returned by the callable when it is called with the values returned by the two evaluators. A static assertion is raised when this number is only known at run time, as evaluators are required to know it at compile time.

Template Parameters
CallableTypetype of the binary operation
FirstEvaluatorTypetype of the evaluator used to compute the first argument of the operation
SecondEvaluatorTypetype of the evaluator used to compute the second argument of the operation

Member Function Documentation

◆ getNumberOfComponents()

template<typename CallableType, EvaluatorConcept FirstEvaluatorType, EvaluatorConcept SecondEvaluatorType>
MGIS_HOST_DEVICE constexpr size_type mgis::function::internals::BinaryOperationModifierBase< CallableType, FirstEvaluatorType, SecondEvaluatorType >::getNumberOfComponents ( )
inlinestaticnodiscardconstexpr

return the number of components

Returns
number of components of the values returned by the binary operation, which is known at compile time

The documentation for this struct was generated from the following file: