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

Predicate that determines if a spectrum was generated using any activation method given in the constructor list. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for HasActivationMethod< SpectrumType >:
[legend]

Public Member Functions

 HasActivationMethod (const StringList &methods, bool reverse=false)
 Constructor.
 
bool operator() (const SpectrumType &s) const
 

Protected Attributes

StringList methods_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::HasActivationMethod< SpectrumType >

Predicate that determines if a spectrum was generated using any activation method given in the constructor list.

SpectrumType must have a getPrecursors() method

Constructor & Destructor Documentation

◆ HasActivationMethod()

template<class SpectrumType >
HasActivationMethod ( const StringList methods,
bool  reverse = false 
)
inline

Constructor.

Parameters
[in]methodsList of methods that is compared against precursor activation methods.
[in]reverseif reverse is true, operator() returns true if the spectrum is not using one of the specified activation methods.

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ methods_

template<class SpectrumType >
StringList methods_
protected

◆ reverse_

template<class SpectrumType >
bool reverse_
protected