35 #ifndef OPENMS_KERNEL_PEAKINDEX_H 
   36 #define OPENMS_KERNEL_PEAKINDEX_H 
   55       peak((std::numeric_limits<
Size>::max)()),
 
   74       return peak != (std::numeric_limits<Size>::max)();
 
   80       peak = (std::numeric_limits<Size>::max)();
 
   81       spectrum = (std::numeric_limits<Size>::max)();
 
   95     template <
typename FeatureMapType>
 
   96     const typename FeatureMapType::value_type & 
getFeature(
const FeatureMapType & map)
 const 
  113     template <
typename PeakMapType>
 
  132     template <
typename PeakMapType>
 
  133     const typename PeakMapType::SpectrumType & 
getSpectrum(
const PeakMapType & map)
 const 
  159 #endif // OPENMS_KERNEL_PEAKINDEX_H 
PeakIndex(Size spectrum, Size peak)
Constructor that sets the peak and spectrum index (for peak maps) 
Definition: PeakIndex.h:66
#define OPENMS_PRECONDITION(condition, message)
Precondition macro. 
Definition: Macros.h:107
Peak2D PeakType
Definition: MassTrace.h:49
bool operator!=(const PeakIndex &rhs) const 
Inequality operator. 
Definition: PeakIndex.h:146
void clear()
Invalidates the current index. 
Definition: PeakIndex.h:78
PeakIndex(Size peak)
Constructor that sets the peak index (for feaure maps) 
Definition: PeakIndex.h:60
Size peak
Peak or feature index. 
Definition: PeakIndex.h:152
const FeatureMapType::value_type & getFeature(const FeatureMapType &map) const 
Access to the feature (or consensus feature) corresponding to this index. 
Definition: PeakIndex.h:96
Size spectrum
Spectrum index. 
Definition: PeakIndex.h:154
const PeakMapType::SpectrumType & getSpectrum(const PeakMapType &map) const 
Access to a spectrum corresponding to this index. 
Definition: PeakIndex.h:133
bool isValid() const 
returns if the current peak ref is valid 
Definition: PeakIndex.h:72
bool operator==(const PeakIndex &rhs) const 
Equality operator. 
Definition: PeakIndex.h:140
size_t Size
Size type e.g. used as variable which can hold result of size() 
Definition: Types.h:144
PeakIndex()
Default constructor. Creates an invalid peak reference. 
Definition: PeakIndex.h:54
const PeakMapType::PeakType & getPeak(const PeakMapType &map) const 
Access to a peak corresponding to this index. 
Definition: PeakIndex.h:114
Index of a peak or feature. 
Definition: PeakIndex.h:51