OpenMS  2.8.0
Classes | Namespaces
DPeak.h File Reference
#include <OpenMS/KERNEL/Peak1D.h>
#include <OpenMS/KERNEL/Peak2D.h>
Include dependency graph for DPeak.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DPeak< dimensions >
 Metafunction to choose among Peak1D respectively Peak2D through a template argument. More...
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 

Class Documentation

◆ OpenMS::DPeak

struct OpenMS::DPeak

template<UInt dimensions>
struct OpenMS::DPeak< dimensions >

Metafunction to choose among Peak1D respectively Peak2D through a template argument.

The result is accessible via typedef Type:

Example:

template class BaseModel<UInt D>
{
// BaseModel<D>::PeakType is either Peak1D or Peak2D, depending on D
typedef typename DPeak<D>::Type PeakType;
};
Peak2D PeakType
Definition: MassTrace.h:47