| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
InRTRange< SpectrumType > Class Template Reference
Kernel » RangeUtils

Predicate that determines if a spectrum lies inside/outside a specific retention time range. More...

`#include <OpenMS/KERNEL/RangeUtils.h>`

Inheritance diagram for InRTRange< SpectrumType >:

## Public Member Functions

| InRTRange (double min, double max, bool reverse=false)
| Constructor. More...
bool | operator() (const SpectrumType &s) const

## Protected Attributes

double | min_
double | max_
bool | reverse_

## Detailed Description

### template<class SpectrumType>
class OpenMS::InRTRange< SpectrumType >

Predicate that determines if a spectrum lies inside/outside a specific retention time range.

SpectrumType must be a Spectrum or have the same interface

## Constructor & Destructor Documentation

## ◆ InRTRange()

InRTRange | ( | double | min,
|  | double | max,
|  | bool | reverse = `false`
| ) |  |

inline

Constructor.

Parameters

  min | lower boundary
  max | upper boundary
  reverse | if `reverse` is true, operator() returns true if the spectrum lies outside the range

## Member Function Documentation

## ◆ operator()()

bool operator() | ( | const SpectrumType & | s | ) | const

inline

References MSSpectrum::getRT(), InRTRange< SpectrumType >::max_, InRTRange< SpectrumType >::min_, and InRTRange< SpectrumType >::reverse_.

## Member Data Documentation

## ◆ max_

double max_

protected

Referenced by InRTRange< SpectrumType >::operator()().

## ◆ min_

double min_

protected

Referenced by InRTRange< SpectrumType >::operator()().

## ◆ reverse_

bool reverse_

protected

Referenced by InRTRange< SpectrumType >::operator()().