OpenMS
2.8.0
|
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor list. More...
#include <OpenMS/KERNEL/RangeUtils.h>
Public Member Functions | |
HasPrecursorCharge (const IntList &charges, bool reverse=false) | |
Constructor. More... | |
bool | operator() (const SpectrumType &s) const |
Protected Attributes | |
IntList | charges_ |
bool | reverse_ |
Predicate that determines if a spectrum has a certain precursor charge as given in the constructor list.
SpectrumType must have a getPrecursors() method
|
inline |
Constructor.
charges | List of charges that is compared against precursor charge. |
reverse | if reverse is true, operator() returns true if the spectrum has not one of the specified precursor charges. |
|
inline |
|
protected |
Referenced by HasPrecursorCharge< SpectrumType >::operator()().
|
protected |
Referenced by HasPrecursorCharge< SpectrumType >::operator()().