35 #ifndef OPENMS_KERNEL_AREAITERATOR_H 36 #define OPENMS_KERNEL_AREAITERATOR_H 57 template <
class ValueT,
class ReferenceT,
class Po
interT,
class SpectrumIteratorT,
class PeakIteratorT>
59 public std::iterator<std::forward_iterator_tag, ValueT>
81 AreaIterator(SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, CoordinateType low_mz, CoordinateType high_mz) :
123 if (&rhs ==
this)
return *
this;
159 return !(*
this == rhs);
PeakIteratorT PeakIteratorType
Definition: AreaIterator.h:65
ValueT PeakType
Definition: AreaIterator.h:63
SpectrumIteratorType end_scan_
Past-the-end iterator of spectra.
Definition: AreaIterator.h:248
AreaIterator & operator=(const AreaIterator &rhs)
Assignment operator.
Definition: AreaIterator.h:121
double CoordinateType
Definition: AreaIterator.h:62
AreaIterator(const AreaIterator &rhs)
Copy constructor.
Definition: AreaIterator.h:109
void nextScan_()
Definition: AreaIterator.h:219
Forward iterator for an area of peaks in an experiment.
Definition: AreaIterator.h:58
unsigned int difference_type
The difference type.
Definition: AreaIterator.h:77
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
CoordinateType low_mz_
low m/z boundary
Definition: AreaIterator.h:254
CoordinateType high_mz_
high m/z boundary
Definition: AreaIterator.h:256
PeakIteratorType end_peak_
Past-the-end iterator of peaks in the current spectrum.
Definition: AreaIterator.h:252
AreaIterator operator++(int)
Step forward by one (postfix operator)
Definition: AreaIterator.h:179
AreaIterator()
Default constructor (for the end iterator)
Definition: AreaIterator.h:93
~AreaIterator()
Destructor.
Definition: AreaIterator.h:105
SpectrumIteratorT SpectrumIteratorType
Definition: AreaIterator.h:64
PeakIteratorType current_peak_
Iterator to the current peak.
Definition: AreaIterator.h:250
ReferenceT reference
The reference type as returned by operator*()
Definition: AreaIterator.h:73
pointer operator->() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:193
SpectrumIteratorType current_scan_
Iterator to the current spectrum.
Definition: AreaIterator.h:246
CoordinateType getRT() const
returns the retention time of the current scan
Definition: AreaIterator.h:199
reference operator*() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:187
bool operator==(const AreaIterator &rhs) const
Test for equality.
Definition: AreaIterator.h:142
PointerT pointer
The pointer type as returned by operator->()
Definition: AreaIterator.h:75
SpectrumIteratorType first_
Iterator to the first scan of the map (needed to calculate the index)
Definition: AreaIterator.h:244
ValueT value_type
The iterator's value type.
Definition: AreaIterator.h:71
bool is_end_
Flag that indicates that this iterator is the end iterator.
Definition: AreaIterator.h:258
AreaIterator(SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, CoordinateType low_mz, CoordinateType high_mz)
Constructor for the begin iterator.
Definition: AreaIterator.h:81
bool operator!=(const AreaIterator &rhs) const
Test for inequality.
Definition: AreaIterator.h:157
PeakIndex getPeakIndex() const
returns the PeakIndex corresponding to the current iterator position
Definition: AreaIterator.h:205
AreaIterator & operator++()
Step forward by one (prefix operator)
Definition: AreaIterator.h:163
Index of a peak or feature.
Definition: PeakIndex.h:51