OpenMS
Loading...
Searching...
No Matches
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.
 
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()

template<class SpectrumType >
HasScanMode ( Int  mode,
bool  reverse = false 
)
inline

Constructor.

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

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ mode_

template<class SpectrumType >
Int mode_
protected

◆ reverse_

template<class SpectrumType >
bool reverse_
protected