OpenMS
HasScanMode< SpectrumType > Class Template Reference

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

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for HasScanMode< SpectrumType >:
[legend]

Public Member Functions

 HasScanMode (Int mode, bool reverse=false)
 Constructor. More...
 
bool operator() (const SpectrumType &s) const
 

Protected Attributes

Int mode_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::HasScanMode< SpectrumType >

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

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

Constructor & Destructor Documentation

◆ HasScanMode()

HasScanMode ( Int  mode,
bool  reverse = false 
)
inline

Constructor.

Parameters
modescan mode
reverseif reverse is true, operator() returns true if the spectrum has a different scan mode

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ mode_

Int mode_
protected

◆ reverse_

bool reverse_
protected