Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | List of all members
CDPL::Math::ScalarBinaryFunctor< T1, T2 > Struct Template Reference

Base class for binary scalar functors of the form F::apply(const T1&, const T2&) returning a Math::CommonType result. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::ScalarBinaryFunctor< T1, T2 >:

Public Types

typedef const T1 & Argument1Type
 The first argument type. More...
 
typedef const T2 & Argument2Type
 The second argument type. More...
 
typedef CommonType< T1, T2 >::Type ResultType
 The result type (common type of T1 and T2). More...
 

Detailed Description

template<typename T1, typename T2>
struct CDPL::Math::ScalarBinaryFunctor< T1, T2 >

Base class for binary scalar functors of the form F::apply(const T1&, const T2&) returning a Math::CommonType result.

Derived functors (Math::ScalarAddition, Math::ScalarSubtraction, Math::ScalarMultiplication, Math::ScalarDivision) implement specific element-wise operations.

Template Parameters
T1The first argument type.
T2The second argument type.

Member Typedef Documentation

◆ Argument1Type

template<typename T1 , typename T2 >
typedef const T1& CDPL::Math::ScalarBinaryFunctor< T1, T2 >::Argument1Type

The first argument type.

◆ Argument2Type

template<typename T1 , typename T2 >
typedef const T2& CDPL::Math::ScalarBinaryFunctor< T1, T2 >::Argument2Type

The second argument type.

◆ ResultType

template<typename T1 , typename T2 >
typedef CommonType<T1, T2>::Type CDPL::Math::ScalarBinaryFunctor< T1, T2 >::ResultType

The result type (common type of T1 and T2).


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