![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
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... | |
Scalar binary addition functor: apply(t1, t2) returns t1 + t2.
| T1 | The first argument type. |
| T2 | The second argument type. |
| typedef ScalarBinaryFunctor<T1, T2>::Argument1Type CDPL::Math::ScalarAddition< T1, T2 >::Argument1Type |
| typedef ScalarBinaryFunctor<T1, T2>::Argument2Type CDPL::Math::ScalarAddition< T1, T2 >::Argument2Type |
| typedef ScalarBinaryFunctor<T1, T2>::ResultType CDPL::Math::ScalarAddition< T1, T2 >::ResultType |
|
inlinestatic |
Returns t1 + t2.
| t1 | The first argument. |
| t2 | The second argument. |