structure used to modify a function or an evaluator so that it returns its values as quantities, i.e. scalar values associated with a physical unit
More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/TFEL/Quantity.hxx>
template<::tfel::math::unit::UnitConcept UnitType>
struct mgis::function::internals::quantity_modifier< UnitType >
structure used to modify a function or an evaluator so that it returns its values as quantities, i.e. scalar values associated with a physical unit
- Template Parameters
-
| UnitType | unit of the quantities returned by the modified function or evaluator |
◆ operator()() [1/2]
template<::tfel::math::unit::UnitConcept UnitType>
create a new modifier
- Template Parameters
-
| EvaluatorType | evaluator type |
- Parameters
-
- Returns
- an evaluator returning the values computed by the given evaluator as quantities with the unit UnitType
- Note
- only available if the number of components of the evaluator is compatible with a quantity, i.e. is equal to one or is only known at run time
◆ operator()() [2/2]
template<::tfel::math::unit::UnitConcept UnitType>
create a new view
- Template Parameters
-
| QualifiedFunctionArgumentType | type of the function, which may be a qualified type (reference, const, etc...) |
- Parameters
-
- Returns
- a view returning the values of the function as quantities with the unit UnitType
- Note
- only available if the number of components of the function is compatible with a quantity, i.e. is equal to one or is only known at run time
The documentation for this struct was generated from the following file: