tfel
Loading...
Searching...
No Matches
tfel::math::ComputeBinaryResult< A, B, Op > Class Template Reference

#include </home/runner/work/tfel/tfel/include/TFEL/Math/General/ComputeBinaryResult.hxx>

Public Types

using Result
 call to ComputeBinaryOperationHandler to get the Result type.
using Handle
 call to ComputeBinaryOperationHandler to get the Handle type.

Detailed Description

template<typename A, typename B, typename Op>
class tfel::math::ComputeBinaryResult< A, B, Op >

A metafunction to manage binary operations. Binary operations are central part of tfel::math which makes heavy use of expression templates. Expression templates differentiates:

  • the result of a binary operation, which in our view is the type to what the result of the binary operation will be affected.
  • the type created by the binary operation, the handle, which is often a temporary that should normally be thrown away by the compiler. This is not true for scalars where the result and the handle are the same are the same. The computation of the Result and Handle types is normally be delegated to ComputeBinaryOperationHandler metafunction which is called by ComputeBinaryResult class after having computed the tag associated with each arguments of the binary operations thanks to the ComputeObjectTag.
    Template Parameters
    A,typeof the first argument of the operation.
    B,typeof the second argument of the operation.
    Op,operation.
    Returns
    Result, type of the result of the operation.
    Handle, type that will handle the operation.
    See also
    ResultType.
    ComputeObjectTag.

Member Typedef Documentation

◆ Handle

template<typename A, typename B, typename Op>
using tfel::math::ComputeBinaryResult< A, B, Op >::Handle
Initial value:
tfel::meta::InvalidType Handle
type that will handle the operation.
Definition ComputeBinaryResult.hxx:55

call to ComputeBinaryOperationHandler to get the Handle type.

◆ Result

template<typename A, typename B, typename Op>
using tfel::math::ComputeBinaryResult< A, B, Op >::Result
Initial value:
tfel::meta::InvalidType Result
result of the binary operation.
Definition ComputeBinaryResult.hxx:53

call to ComputeBinaryOperationHandler to get the Result type.


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