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

Scalar binary addition functor: apply(t1, t2) returns t1 + t2. More...

#include <Functional.hpp>

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

Public Types

typedef ScalarBinaryFunctor< T1, T2 >::Argument1Type Argument1Type
 
typedef ScalarBinaryFunctor< T1, T2 >::Argument2Type Argument2Type
 
typedef ScalarBinaryFunctor< T1, T2 >::ResultType ResultType
 
- Public Types inherited from CDPL::Math::ScalarBinaryFunctor< T1, T2 >
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...
 

Static Public Member Functions

static ResultType apply (Argument1Type t1, Argument2Type t2)
 Returns t1 + t2. More...
 

Detailed Description

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

Scalar binary addition functor: apply(t1, t2) returns t1 + t2.

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

Member Typedef Documentation

◆ Argument1Type

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

◆ Argument2Type

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

◆ ResultType

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

Member Function Documentation

◆ apply()

template<typename T1 , typename T2 >
static ResultType CDPL::Math::ScalarAddition< T1, T2 >::apply ( Argument1Type  t1,
Argument2Type  t2 
)
inlinestatic

Returns t1 + t2.

Parameters
t1The first argument.
t2The second argument.
Returns
The sum of t1 and t2.

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