MGIS 3.1.0
Loading...
Searching...
No Matches
mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType > Struct Template Reference

helper base class giving the number of components of the values returned by a unary operation applied to an evaluator More...

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

Inheritance diagram for mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType >:
mgis::function::UnaryOperation< CallableType, EvaluatorType > mgis::function::UnaryOperation2< CallableType, EvaluatorType >

Static Public Member Functions

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

Detailed Description

template<typename CallableType, EvaluatorConcept EvaluatorType>
struct mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType >

helper base class giving the number of components of the values returned by a unary operation applied to an evaluator

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 evaluator. 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 unary operation
EvaluatorTypetype of the evaluator whose values are modified

Member Function Documentation

◆ getNumberOfComponents()

template<typename CallableType, EvaluatorConcept EvaluatorType>
constexpr size_type mgis::function::internals::UnaryOperationBase< CallableType, EvaluatorType >::getNumberOfComponents ( )
inlinestaticconstexpr

return the number of components

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

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