![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Scalar negation functor: apply(v) returns -v.
More...
#include <Functional.hpp>
Inheritance diagram for CDPL::Math::ScalarNegation< T >:Public Types | |
| typedef ScalarUnaryFunctor< T >::ValueType | ValueType |
| typedef ScalarUnaryFunctor< T >::ArgumentType | ArgumentType |
| typedef ScalarUnaryFunctor< T >::ResultType | ResultType |
Public Types inherited from CDPL::Math::ScalarUnaryFunctor< T > | |
| 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... | |
Static Public Member Functions | |
| static ResultType | apply (ArgumentType v) |
Returns -v. More... | |
Scalar negation functor: apply(v) returns -v.
| T | The scalar value type. |
| typedef ScalarUnaryFunctor<T>::ValueType CDPL::Math::ScalarNegation< T >::ValueType |
| typedef ScalarUnaryFunctor<T>::ArgumentType CDPL::Math::ScalarNegation< T >::ArgumentType |
| typedef ScalarUnaryFunctor<T>::ResultType CDPL::Math::ScalarNegation< T >::ResultType |
|
inlinestatic |
Returns -v.
| v | The scalar argument. |