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

Base class for unary scalar functors of the form F::apply(const T&) returning a T result. More...

#include <Functional.hpp>

+ Inheritance diagram for CDPL::Math::ScalarUnaryFunctor< T >:

Public Types

typedef T ValueType
 The scalar value type. More...
 
typedef const T & ArgumentType
 The argument type (a const reference to ValueType). More...
 
typedef ValueType ResultType
 The result type of apply(). More...
 

Detailed Description

template<typename T>
struct CDPL::Math::ScalarUnaryFunctor< T >

Base class for unary scalar functors of the form F::apply(const T&) returning a T result.

Derived functors (Math::ScalarNegation, Math::ScalarConjugation, Math::ScalarReal, Math::ScalarImaginary) implement specific element-wise operations.

Template Parameters
TThe scalar value type.

Member Typedef Documentation

◆ ValueType

template<typename T >
typedef T CDPL::Math::ScalarUnaryFunctor< T >::ValueType

The scalar value type.

◆ ArgumentType

template<typename T >
typedef const T& CDPL::Math::ScalarUnaryFunctor< T >::ArgumentType

The argument type (a const reference to ValueType).

◆ ResultType

template<typename T >
typedef ValueType CDPL::Math::ScalarUnaryFunctor< T >::ResultType

The result type of apply().


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