OpenMS  2.8.0
Public Member Functions | Private Attributes | List of all members
IsInIsolationWindow< SpectrumType > Class Template Reference

Predicate that determines if the isolation window covers ANY of the given m/z values. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for IsInIsolationWindow< SpectrumType >:
[legend]

Public Member Functions

 IsInIsolationWindow (std::vector< double > vec_mz, bool reverse=false)
 Constructor. More...
 
bool operator() (const SpectrumType &s) const
 

Private Attributes

std::vector< double > vec_mz_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::IsInIsolationWindow< SpectrumType >

Predicate that determines if the isolation window covers ANY of the given m/z values.

Note
This predicate will return always true for spectra with getMSLevel() = 1.

Constructor & Destructor Documentation

◆ IsInIsolationWindow()

IsInIsolationWindow ( std::vector< double >  vec_mz,
bool  reverse = false 
)
inline

Constructor.

Parameters
vec_mzVector of m/z values, of which at least one needs to be covered
reverseif reverse is true, operator() returns true if the isolation window is outside for ALL m/z values.

References IsInIsolationWindow< SpectrumType >::vec_mz_.

Member Function Documentation

◆ operator()()

bool operator() ( const SpectrumType s) const
inline

Member Data Documentation

◆ reverse_

bool reverse_
private

◆ vec_mz_

std::vector<double> vec_mz_
private