Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

InMzRange Class Template Reference
[RangeUtils]

#include <OpenMS/KERNEL/RangeUtils.h>

Inheritance diagram for InMzRange:

unary_function

List of all members.


Detailed Description

template<class PeakType>
class OpenMS::InMzRange< PeakType >

Predicate that determines if a peak lies inside/outside a specific m/z range.

PeakType must be a DRawDataPoint or have the same interface.

Note:
It is assumed that the m/z dimension is dimension 0!

Public Member Functions

 InMzRange (DoubleReal min, DoubleReal max, bool reverse=false)
 Constructor.
bool operator() (const PeakType &p) const

Protected Attributes

DoubleReal min_
DoubleReal max_
bool reverse_

Constructor & Destructor Documentation

InMzRange ( DoubleReal  min,
DoubleReal  max,
bool  reverse = false 
) [inline]

Constructor.

Parameters:
min lower boundary
max upper boundary
reverse if reverse is true, operator() return true if the peak lies outside the range


Member Function Documentation

bool operator() ( const PeakType &  p  )  const [inline]


Member Data Documentation

DoubleReal min_ [protected]

DoubleReal max_ [protected]

bool reverse_ [protected]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:46 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1