OpenMS
DPeak.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- 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 {
24  template <UInt dimensions>
25  struct DPeak
26  {};
27 
28  // We do not want these classes to show up in the docu
30 
31  template <>
32  struct DPeak<1>
33  {
34  typedef Peak1D Type;
35  };
36 
37  template <>
38  struct DPeak<2>
39  {
40  typedef Peak2D Type;
41  };
42 
44 
45 } // namespace OpenMS
46 
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:28
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Metafunction to choose among Peak1D respectively Peak2D through a template argument.
Definition: DPeak.h:26