casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::viewer::RangeLimiter< T > Class Template Reference

class for applying a range limit to values... More...

#include <elements.h>

Public Member Functions

 RangeLimiter (T(*mod)(T)=0)
 No-Op range limiter... More...
 
 RangeLimiter (T min, T max, T(*mod)(T)=0)
 
 RangeLimiter (const RangeLimiter &other)
 
const RangeLimiteroperator= (const RangeLimiter &other)
 
virtual T operator() (T value)
 
virtual ~RangeLimiter ()
 

Private Attributes

bool noop_
 
min_
 
max_
 
T(* mod_ )(T)
 

Detailed Description

template<typename T>
class casa::viewer::RangeLimiter< T >

class for applying a range limit to values...

Definition at line 38 of file elements.h.

Constructor & Destructor Documentation

template<typename T >
casa::viewer::RangeLimiter< T >::RangeLimiter ( T(*)(T)  mod = 0)
inline

No-Op range limiter...

Definition at line 41 of file elements.h.

template<typename T >
casa::viewer::RangeLimiter< T >::RangeLimiter ( min,
max,
T(*)(T)  mod = 0 
)
inline

Definition at line 42 of file elements.h.

template<typename T >
casa::viewer::RangeLimiter< T >::RangeLimiter ( const RangeLimiter< T > &  other)
inline

Definition at line 43 of file elements.h.

template<typename T >
virtual casa::viewer::RangeLimiter< T >::~RangeLimiter ( )
inlinevirtual

Definition at line 54 of file elements.h.

Member Function Documentation

template<typename T >
virtual T casa::viewer::RangeLimiter< T >::operator() ( value)
inlinevirtual
template<typename T >
const RangeLimiter& casa::viewer::RangeLimiter< T >::operator= ( const RangeLimiter< T > &  other)
inline

Member Data Documentation

template<typename T >
T casa::viewer::RangeLimiter< T >::max_
private
template<typename T >
T casa::viewer::RangeLimiter< T >::min_
private

Definition at line 57 of file elements.h.

Referenced by casa::viewer::RangeLimiter< T >::operator=().

template<typename T >
T(* casa::viewer::RangeLimiter< T >::mod_)(T)
private
template<typename T >
bool casa::viewer::RangeLimiter< T >::noop_
private

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