cartodata 6.0.0
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
 
cfloat operator() (const cfloat &x) const
 
cfloat operator() (const cfloat &x) const
 
cdouble operator() (const cdouble &x) const
 
cdouble operator() (const cdouble &x) const
 
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 1592 of file volumeutil.h.

Constructor & Destructor Documentation

◆ Divider()

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

Definition at line 1595 of file volumeutil.h.

References divisor.

Member Function Documentation

◆ operator()() [1/6]

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

Definition at line 1614 of file volumeutil.h.

References divisor.

◆ operator()() [2/6]

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

Definition at line 1620 of file volumeutil.h.

References divisor.

◆ operator()() [3/6]

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

Definition at line 1626 of file volumeutil.h.

References divisor.

◆ operator()() [4/6]

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

Definition at line 1602 of file volumeutil.h.

References divisor.

◆ operator()() [5/6]

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

Definition at line 1608 of file volumeutil.h.

References divisor.

◆ operator()() [6/6]

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

Definition at line 1596 of file volumeutil.h.

References divisor.

Member Data Documentation

◆ divisor

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

Definition at line 1598 of file volumeutil.h.

Referenced by Divider(), operator()(), operator()(), and operator()().


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