CMS 3D CMS Logo

MaxNumberSelector Struct Reference

#include <PhysicsTools/PatUtils/interface/MaxNumberSelector.h>

List of all members.

Public Member Functions

 MaxNumberSelector (unsigned int maxNumber)
 MaxNumberSelector (unsigned int maxNumber)
bool operator() (unsigned int number) const
bool operator() (unsigned int number) const

Private Attributes

unsigned int maxNumber_


Detailed Description

Definition at line 7 of file MaxNumberSelector.h.


Constructor & Destructor Documentation

MaxNumberSelector::MaxNumberSelector ( unsigned int  maxNumber  )  [inline]

Definition at line 8 of file MaxNumberSelector.h.

00008                                               : 
00009     maxNumber_( maxNumber ) { }

MaxNumberSelector::MaxNumberSelector ( unsigned int  maxNumber  )  [inline]

Definition at line 11 of file MaxNumberSelector.h.

00011                                             : 
00012     maxNumber_(maxNumber) { }


Member Function Documentation

bool MaxNumberSelector::operator() ( unsigned int  number  )  const [inline]

Definition at line 13 of file MaxNumberSelector.h.

References maxNumber_.

00013 { return number <= maxNumber_; }

bool MaxNumberSelector::operator() ( unsigned int  number  )  const [inline]

Definition at line 10 of file MaxNumberSelector.h.

References maxNumber_.

00010 { return number <= maxNumber_; }


Member Data Documentation

unsigned int MaxNumberSelector::maxNumber_ [private]

Definition at line 13 of file MaxNumberSelector.h.

Referenced by operator()().


The documentation for this struct was generated from the following files:
Generated on Tue Jun 9 18:28:04 2009 for CMSSW by  doxygen 1.5.4