OpenMS
FilterFunctor.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 //
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
18  class OPENMS_DLLAPI FilterFunctor :
19  public DefaultParamHandler
20  {
21 public:
22 
25 
27  FilterFunctor(const FilterFunctor & source);
28 
30  ~FilterFunctor() override;
31 
34 
36  static void registerChildren();
37 
39  template <typename SpectrumType>
40  double apply(SpectrumType & /* spectrum */)
41  {
42  return 0;
43  }
44 
45  };
46 }
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
A FilterFunctor extracts some spectrum characteristics for quality assessment.
Definition: FilterFunctor.h:20
double apply(SpectrumType &)
function call operator
Definition: FilterFunctor.h:40
FilterFunctor(const FilterFunctor &source)
copy constructor
FilterFunctor & operator=(const FilterFunctor &source)
assignment operator
~FilterFunctor() override
destructor
static void registerChildren()
FilterFunctor()
default constructor
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22