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

Scalar in-place subtraction functor: apply(t1, t2) performs t1 -= t2. More...

#include <Functional.hpp>

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

Public Types

typedef ScalarBinaryAssignmentFunctor< T1, T2 >::Argument1Type Argument1Type
 
typedef ScalarBinaryAssignmentFunctor< T1, T2 >::Argument2Type Argument2Type
 
- Public Types inherited from CDPL::Math::ScalarBinaryAssignmentFunctor< T1, T2 >
typedef T1 Argument1Type
 The (modifiable) first argument type. More...
 
typedef const T2 & Argument2Type
 The second (source) argument type. More...
 

Static Public Member Functions

static void apply (Argument1Type t1, Argument2Type t2)
 Performs t1 -= t2. More...
 

Detailed Description

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

Scalar in-place subtraction functor: apply(t1, t2) performs t1 -= t2.

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

Member Typedef Documentation

◆ Argument1Type

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

◆ Argument2Type

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

Member Function Documentation

◆ apply()

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

Performs t1 -= t2.

Parameters
t1The destination scalar.
t2The subtrahend.

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