Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

InPrecursorMZRange< SpectrumType > Class Template Reference
[RangeUtils]

Predicate that determines if a spectrum's precursor is within a certain m/z range. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Inheritance diagram for InPrecursorMZRange< SpectrumType >:
unary_function

List of all members.

Public Member Functions

 InPrecursorMZRange (const DoubleReal &mz_left, const DoubleReal &mz_right, bool reverse=false)
 Constructor.
bool operator() (const SpectrumType &s) const

Protected Attributes

DoubleReal mz_left_
DoubleReal mz_right_
bool reverse_

Detailed Description

template<class SpectrumType>
class OpenMS::InPrecursorMZRange< SpectrumType >

Predicate that determines if a spectrum's precursor is within a certain m/z range.

SpectrumType must have a getPrecursors() method

If multiple precursors are present, all must fulfill the range criterium.


Constructor & Destructor Documentation

InPrecursorMZRange ( const DoubleReal mz_left,
const DoubleReal mz_right,
bool  reverse = false 
) [inline]

Constructor.

Parameters:
mz_left left m/z boundary (closed interval)
mz_right right m/z boundary (closed interval)
reverse if reverse is true, operator() returns true if the precursor's m/z is outside of the given interval.

Member Function Documentation

bool operator() ( const SpectrumType &  s  )  const [inline]

Member Data Documentation

DoubleReal mz_left_ [protected]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:55 using doxygen 1.7.1