Public Member Functions | Private Attributes | List of all members
blaze::Clip< DT > Struct Template Reference

Generic wrapper for the clip() function. More...

#include <Clip.h>

Public Member Functions

 Clip (const DT &min, const DT &max)
 Constructor of the Clip functor. More...
 
template<typename T >
BLAZE_ALWAYS_INLINE auto operator() (const T &a) const
 Returns the result of the clip() function for the given object/value. More...
 

Private Attributes

DT min_
 The lower delimiter.
 
DT max_
 The upper delimiter.
 

Detailed Description

template<typename DT>
struct blaze::Clip< DT >

Generic wrapper for the clip() function.

Constructor & Destructor Documentation

template<typename DT >
blaze::Clip< DT >::Clip ( const DT &  min,
const DT &  max 
)
inlineexplicit

Constructor of the Clip functor.

Parameters
minThe lower limit of the range.
maxThe upper limit of the range.

Member Function Documentation

template<typename DT >
template<typename T >
BLAZE_ALWAYS_INLINE auto blaze::Clip< DT >::operator() ( const T &  a) const
inline

Returns the result of the clip() function for the given object/value.

Parameters
aThe given object/value.
Returns
The result of the clip() function for the given object/value.

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