CMS 3D CMS Logo

Public Member Functions | Private Attributes

MaxSelector< T > Struct Template Reference

#include <MaxSelector.h>

List of all members.

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.

: max_( max ) { }

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_.

{ 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()().