Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

math::Clamp2Upper< T > Struct Template Reference

clamp a given type to an upper bound More...

#include <utils.hpp>

Inheritance diagram for math::Clamp2Upper< T >:

Inheritance graph
[legend]
Collaboration diagram for math::Clamp2Upper< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Clamp2Upper (const T &_ub=Traits< T >::zero())
operator() (const T &x) const
operator() (const T &x, const T &_ub)

Detailed Description

template<typename T>
struct math::Clamp2Upper< T >

clamp a given type to an upper bound

Definition at line 33 of file utils.hpp.


Constructor & Destructor Documentation

template<typename T>
math::Clamp2Upper< T >::Clamp2Upper const T &  _ub = Traits<T>::zero()  )  [inline]
 

Definition at line 35 of file utils.hpp.


Member Function Documentation

template<typename T>
T math::Clamp2Upper< T >::operator() const T &  x,
const T &  _ub
[inline]
 

Definition at line 37 of file utils.hpp.

template<typename T>
T math::Clamp2Upper< T >::operator() const T &  x  )  const [inline]
 

Definition at line 36 of file utils.hpp.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 2 11:33:28 2003 for math by doxygen 1.3.2