TuttleOFX  1
terry::channel_clamp< Channel > Struct Template Reference

#include <clamp.hpp>

Public Types

typedef channel_base_type
< Channel >::type 
ChannelBaseType

Public Member Functions

 channel_clamp (const Channel min, const Channel max)
GIL_FORCEINLINE void operator() (const Channel &src, Channel &dst) const

Data Fields

const ChannelBaseType _min
const ChannelBaseType _max

Detailed Description

template<typename Channel>
struct terry::channel_clamp< Channel >

Definition at line 9 of file clamp.hpp.


Member Typedef Documentation

template<typename Channel >
typedef channel_base_type<Channel>::type terry::channel_clamp< Channel >::ChannelBaseType

Definition at line 11 of file clamp.hpp.


Constructor & Destructor Documentation

template<typename Channel >
terry::channel_clamp< Channel >::channel_clamp ( const Channel  min,
const Channel  max 
) [inline]

Definition at line 16 of file clamp.hpp.


Member Function Documentation

template<typename Channel >
GIL_FORCEINLINE void terry::channel_clamp< Channel >::operator() ( const Channel &  src,
Channel &  dst 
) const [inline]

Definition at line 22 of file clamp.hpp.

References terry::channel_clamp< Channel >::_max, terry::channel_clamp< Channel >::_min, tuttle::max(), and tuttle::min().

Here is the call graph for this function:


Field Documentation

template<typename Channel >
const ChannelBaseType terry::channel_clamp< Channel >::_max

Definition at line 14 of file clamp.hpp.

Referenced by terry::channel_clamp< Channel >::operator()().

template<typename Channel >
const ChannelBaseType terry::channel_clamp< Channel >::_min

Definition at line 13 of file clamp.hpp.

Referenced by terry::channel_clamp< Channel >::operator()().


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