| OpenMS 2.5.0

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

Predicate that determines if a spectrum is a zoom (enhanced resolution) spectrum. More...

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

Inheritance diagram for IsZoomSpectrum< SpectrumType >:

## Public Member Functions

| IsZoomSpectrum (bool reverse=false)
| Constructor. More...
bool | operator() (const SpectrumType &s) const

## Protected Attributes

bool | reverse_

## Detailed Description

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

Predicate that determines if a spectrum is a zoom (enhanced resolution) spectrum.

SpectrumType must have a getInstrumentSettings() method

## Constructor & Destructor Documentation

## ◆ IsZoomSpectrum()

IsZoomSpectrum | ( | bool | reverse = `false` | ) |

inline explicit

Constructor.

Parameters

  reverse | if `reverse` is true, operator() returns true if the spectrum is not a zoom spectrum

## Member Function Documentation

## ◆ operator()()

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

inline

References SpectrumSettings::getInstrumentSettings(), InstrumentSettings::getZoomScan(), and IsZoomSpectrum< SpectrumType >::reverse_.

## Member Data Documentation

## ◆ reverse_

bool reverse_

protected

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