OpenMS
Loading...
Searching...
No Matches
HasScanPolarity< SpectrumType > Class Template Reference

Predicate that determines if a spectrum has a certain scan polarity. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for HasScanPolarity< SpectrumType >:
[legend]

Public Member Functions

 HasScanPolarity (IonSource::Polarity polarity, bool reverse=false)
 Constructor.
 
bool operator() (const SpectrumType &s) const
 

Protected Attributes

IonSource::Polarity polarity_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::HasScanPolarity< SpectrumType >

Predicate that determines if a spectrum has a certain scan polarity.

SpectrumType must be a Spectrum or have the same interface (SpectrumSettings)

Constructor & Destructor Documentation

◆ HasScanPolarity()

template<class SpectrumType >
HasScanPolarity ( IonSource::Polarity  polarity,
bool  reverse = false 
)
inline

Constructor.

Parameters
[in]polarityscan polarity
[in]reverseif reverse is true, operator() returns true if the spectrum has a different scan polarity

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ polarity_

template<class SpectrumType >
IonSource::Polarity polarity_
protected

◆ reverse_

template<class SpectrumType >
bool reverse_
protected