CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MaxSelector< T > Struct Template Reference

#include <MaxSelector.h>

Public Member Functions

 MaxSelector (T max)
 
bool operator() (T t) const
 

Private Attributes

T max_
 

Detailed Description

template<typename T>
struct MaxSelector< T >

Definition at line 11 of file MaxSelector.h.

Constructor & Destructor Documentation

template<typename T >
MaxSelector< T >::MaxSelector ( T  max)
inline

Definition at line 12 of file MaxSelector.h.

12 : max_( max ) { }
const T & max(const T &a, const T &b)

Member Function Documentation

template<typename T >
bool MaxSelector< T >::operator() ( T  t) const
inline

Definition at line 13 of file MaxSelector.h.

References MaxSelector< T >::max_.

13 { return t <= max_; }

Member Data Documentation

template<typename T >
T MaxSelector< T >::max_
private

Definition at line 16 of file MaxSelector.h.

Referenced by MaxSelector< T >::operator()().