OpenMS
InMzRange< PeakType > Class Template Reference

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

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for InMzRange< PeakType >:
[legend]

Public Member Functions

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

Protected Attributes

double min_
 
double max_
 
bool reverse_
 

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 have a getPosition() method.

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

Constructor & Destructor Documentation

◆ InMzRange()

InMzRange ( double  min,
double  max,
bool  reverse = false 
)
inline

Constructor.

Parameters
minlower boundary
maxupper boundary
reverseif reverse is true, operator() returns true if the peak lies outside the range

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ max_

double max_
protected

◆ min_

double min_
protected

◆ reverse_

bool reverse_
protected