Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

HasPrecursorCharge< SpectrumType > Class Template Reference
[RangeUtils]

Predicate that determines if a spectrum has a certain precursor charge as given in the constructor list. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Inheritance diagram for HasPrecursorCharge< SpectrumType >:
unary_function

List of all members.

Public Member Functions

 HasPrecursorCharge (const IntList &charges, bool reverse=false)
 Constructor.
bool operator() (const SpectrumType &s) const

Protected Attributes

IntList charges_
bool reverse_

Detailed Description

template<class SpectrumType>
class OpenMS::HasPrecursorCharge< SpectrumType >

Predicate that determines if a spectrum has a certain precursor charge as given in the constructor list.

SpectrumType must have a getPrecursors() method


Constructor & Destructor Documentation

HasPrecursorCharge ( const IntList charges,
bool  reverse = false 
) [inline]

Constructor.

Parameters:
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.

Member Function Documentation

bool operator() ( const SpectrumType &  s  )  const [inline]

Member Data Documentation


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:55 using doxygen 1.7.1