OpenMS
DPeak.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 
11 #include <OpenMS/KERNEL/Peak1D.h>
12 #include <OpenMS/KERNEL/Peak2D.h>
13 
14 namespace OpenMS
15 {
16 
33  template <UInt dimensions>
34  struct DPeak
35  {};
36 
37  // We do not want these classes to show up in the docu
39 
40  template <>
41  struct DPeak<1>
42  {
43  typedef Peak1D Type;
44  };
45 
46  template <>
47  struct DPeak<2>
48  {
49  typedef Peak2D Type;
50  };
51 
53 
54 } // namespace OpenMS
55 
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:28
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Metafunction to choose among Peak1D respectively Peak2D through a template argument.
Definition: DPeak.h:35