|
OpenMS
2.6.0
|
Go to the documentation of this file.
54 peak((std::numeric_limits<
Size>::max)()),
73 return peak != (std::numeric_limits<Size>::max)();
79 peak = (std::numeric_limits<Size>::max)();
80 spectrum = (std::numeric_limits<Size>::max)();
94 template <
typename FeatureMapType>
95 const typename FeatureMapType::value_type &
getFeature(
const FeatureMapType & map)
const
112 template <
typename PeakMapType>
131 template <
typename PeakMapType>
Peak2D PeakType
Definition: MassTrace.h:47
void clear()
Invalidates the current index.
Definition: PeakIndex.h:77
const PeakMapType::PeakType & getPeak(const PeakMapType &map) const
Access to a peak corresponding to this index.
Definition: PeakIndex.h:113
bool isValid() const
returns if the current peak ref is valid
Definition: PeakIndex.h:71
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:136
Size peak
Peak or feature index.
Definition: PeakIndex.h:151
const FeatureMapType::value_type & getFeature(const FeatureMapType &map) const
Access to the feature (or consensus feature) corresponding to this index.
Definition: PeakIndex.h:95
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
PeakIndex()
Default constructor. Creates an invalid peak reference.
Definition: PeakIndex.h:53
Index of a peak or feature.
Definition: PeakIndex.h:50
const PeakMapType::SpectrumType & getSpectrum(const PeakMapType &map) const
Access to a spectrum corresponding to this index.
Definition: PeakIndex.h:132
MSSpectrum SpectrumType
Definition: MzDataHandler.h:60
bool operator!=(const PeakIndex &rhs) const
Inequality operator.
Definition: PeakIndex.h:145
PeakIndex(Size lpeak)
Constructor that sets the peak index (for feature maps)
Definition: PeakIndex.h:59
Size spectrum
Spectrum index.
Definition: PeakIndex.h:153
PeakIndex(Size lspectrum, Size lpeak)
Constructor that sets the peak and spectrum index (for peak maps)
Definition: PeakIndex.h:65
bool operator==(const PeakIndex &rhs) const
Equality operator.
Definition: PeakIndex.h:139