OpenMS  2.8.0
Public Member Functions | Protected Attributes | List of all members
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. More...
 
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()

HasActivationMethod ( const StringList methods,
bool  reverse = false 
)
inline

Constructor.

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

Member Function Documentation

◆ operator()()

bool operator() ( const SpectrumType s) const
inline

Member Data Documentation

◆ methods_

StringList methods_
protected

◆ reverse_

bool reverse_
protected