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

Divider functor. More...

#include <cartodata/volume/volumeutil.h>

Public Member Functions

 Divider (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
 
template<>
cdouble operator() (const cdouble &x) const
 

Public Attributes

divisor
 

Detailed Description

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

Divider functor.

Divides the argument with a constant value. This class may move in another location later.

Definition at line 1179 of file volumeutil.h.

Constructor & Destructor Documentation

◆ Divider()

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

Definition at line 1182 of file volumeutil.h.

Member Function Documentation

◆ operator()() [1/6]

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

Definition at line 1183 of file volumeutil.h.

◆ operator()() [2/6]

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

Definition at line 1189 of file volumeutil.h.

◆ operator()() [3/6]

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

Definition at line 1195 of file volumeutil.h.

◆ operator()() [4/6]

template<>
cdouble carto::Divider< cdouble, double >::operator() ( const cdouble x) const
inline

Definition at line 1201 of file volumeutil.h.

◆ operator()() [5/6]

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

Definition at line 1207 of file volumeutil.h.

◆ operator()() [6/6]

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

Definition at line 1213 of file volumeutil.h.

Member Data Documentation

◆ divisor

template<typename T , typename U >
U carto::Divider< T, U >::divisor

Definition at line 1185 of file volumeutil.h.


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