cartodata  5.0.5
carto::Scaler< T, U > Class Template Reference

Scaler functor. More...

#include <cartodata/volume/volumeutil.h>

Public Member Functions

 Scaler (U x)
 
operator() (const T &x) const
 
template<>
cfloat operator() (const cfloat &x) const
 
template<>
cfloat operator() (const cfloat &x) const
 
template<>
cdouble operator() (const cdouble &x) const
 
template<>
cdouble operator() (const cdouble &x) const
 

Public Attributes

scale
 

Detailed Description

template<typename T, typename U>
class carto::Scaler< T, U >

Scaler functor.

Multiplies the argument with a constant (double) value. This class may move in another location later.

Definition at line 1141 of file volumeutil.h.

Constructor & Destructor Documentation

◆ Scaler()

template<typename T , typename U >
carto::Scaler< T, U >::Scaler ( x)
inline

Definition at line 1144 of file volumeutil.h.

Member Function Documentation

◆ operator()() [1/5]

template<typename T , typename U >
T carto::Scaler< T, U >::operator() ( const T &  x) const
inline

Definition at line 1145 of file volumeutil.h.

◆ operator()() [2/5]

template<>
cfloat carto::Scaler< cfloat, double >::operator() ( const cfloat x) const
inline

Definition at line 1151 of file volumeutil.h.

◆ operator()() [3/5]

template<>
cfloat carto::Scaler< cfloat, long >::operator() ( const cfloat x) const
inline

Definition at line 1157 of file volumeutil.h.

◆ operator()() [4/5]

template<>
cdouble carto::Scaler< cdouble, float >::operator() ( const cdouble x) const
inline

Definition at line 1163 of file volumeutil.h.

◆ operator()() [5/5]

template<>
cdouble carto::Scaler< cdouble, long >::operator() ( const cdouble x) const
inline

Definition at line 1169 of file volumeutil.h.

Member Data Documentation

◆ scale

template<typename T , typename U >
U carto::Scaler< T, U >::scale

Definition at line 1147 of file volumeutil.h.


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