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

Base class for binary in-place assignment functors of the form F::apply(T1, const T2&). More...

#include <Functional.hpp>

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

Public Types

typedef T1 Argument1Type
 The (modifiable) first argument type. More...
 
typedef const T2 & Argument2Type
 The second (source) argument type. More...
 

Detailed Description

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

Base class for binary in-place assignment functors of the form F::apply(T1, const T2&).

Derived functors (Math::ScalarAssignment, Math::ScalarAdditionAssignment, Math::ScalarSubtractionAssignment, Math::ScalarMultiplicationAssignment, Math::ScalarDivisionAssignment) implement the element-wise update of a destination scalar with a source scalar.

Template Parameters
T1The (modifiable) destination type.
T2The source type.

Member Typedef Documentation

◆ Argument1Type

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

The (modifiable) first argument type.

◆ Argument2Type

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

The second (source) argument type.


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