| OpenMS 2.5.0

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

Predicate that determines if a spectrum lies inside/outside a specific MS level set. More...

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

Inheritance diagram for InMSLevelRange< SpectrumType >:

## Public Member Functions

| InMSLevelRange (const IntList &levels, bool reverse=false)
| Constructor. More...
bool | operator() (const SpectrumType &s) const

## Protected Attributes

IntList | levels_
bool | reverse_

## Detailed Description

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

Predicate that determines if a spectrum lies inside/outside a specific MS level set.

SpectrumType must be a Spectrum or have the same interface

## Constructor & Destructor Documentation

## ◆ InMSLevelRange()

InMSLevelRange | ( | const IntList & | levels,
|  | bool | reverse = `false`
| ) |  |

inline

Constructor.

Parameters

  levels | an array of MS levels
  reverse | if `reverse` is true, operator() returns true if the spectrum lies outside the set

## Member Function Documentation

## ◆ operator()()

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

inline

References seqan::find(), MSSpectrum::getMSLevel(), InMSLevelRange< SpectrumType >::levels_, and InMSLevelRange< SpectrumType >::reverse_.

## Member Data Documentation

## ◆ levels_

IntList levels_

protected

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

## ◆ reverse_

bool reverse_

protected

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