![]() |
OpenMS
|
Predicate that determines if a spectrum has a certain scan polarity. More...
#include <OpenMS/KERNEL/RangeUtils.h>
Public Member Functions | |
| HasScanPolarity (IonSource::Polarity polarity, bool reverse=false) | |
| Constructor. | |
| bool | operator() (const SpectrumType &s) const |
Protected Attributes | |
| IonSource::Polarity | polarity_ |
| bool | reverse_ |
Predicate that determines if a spectrum has a certain scan polarity.
SpectrumType must be a Spectrum or have the same interface (SpectrumSettings)
|
inline |
Constructor.
| [in] | polarity | scan polarity |
| [in] | reverse | if reverse is true, operator() returns true if the spectrum has a different scan polarity |
|
inline |
|
protected |
Referenced by HasScanPolarity< SpectrumType >::operator()().
|
protected |
Referenced by HasScanPolarity< SpectrumType >::operator()().