60 template <
class ValueT,
class ReferenceT,
class Po
interT,
class SpectrumIteratorT,
class PeakIteratorT>
62 public std::iterator<std::forward_iterator_tag, ValueT>
205 return !(*
this == rhs);
CoordinateType high_mz_
high m/z boundary
Definition: AreaIterator.h:129
SpectrumIteratorType current_scan_
Iterator to the current spectrum.
Definition: AreaIterator.h:118
CoordinateType getDriftTime() const
returns the ion mobility time of the current scan
Definition: AreaIterator.h:251
PeakIteratorT PeakIteratorType
Definition: AreaIterator.h:68
ValueT PeakType
Definition: AreaIterator.h:66
SpectrumIteratorType first_
Iterator to the first scan of the map (needed to calculate the index)
Definition: AreaIterator.h:116
AreaIterator & operator=(const AreaIterator &rhs)
Assignment operator.
Definition: AreaIterator.h:176
CoordinateType high_im_
high mobility boundary
Definition: AreaIterator.h:133
double CoordinateType
Definition: AreaIterator.h:65
void nextScan_()
advances the iterator to the next valid peak in the next valid spectrum
Definition: AreaIterator.h:271
Forward iterator for an area of peaks in an experiment.
Definition: AreaIterator.h:61
Param & lowIM(CoordinateType low_im)
low ion mobility boundary
Definition: AreaIterator.h:107
unsigned int difference_type
The difference type.
Definition: AreaIterator.h:156
Param & lowMZ(CoordinateType low_mz)
low m/z boundary
Definition: AreaIterator.h:103
Param & highMZ(CoordinateType high_mz)
high m/z boundary
Definition: AreaIterator.h:105
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Param p_
holds spectra iterators and area limits
Definition: AreaIterator.h:300
SpectrumIteratorType end_scan_
Past-the-end iterator of spectra.
Definition: AreaIterator.h:120
Param(SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, uint8_t ms_level)
C'tor with mandatory parameters.
Definition: AreaIterator.h:83
Param & operator=(const Param &rhs)=default
Assignment operator.
CoordinateType low_im_
low mobility boundary
Definition: AreaIterator.h:131
AreaIterator operator++(int)
Step forward by one (postfix operator)
Definition: AreaIterator.h:225
AreaIterator()
Default constructor (for the end iterator)
Definition: AreaIterator.h:167
AreaIterator(const Param &p)
Constructor for the begin iterator.
Definition: AreaIterator.h:160
Param()=default
only used internally for end()
PeakIteratorType end_peak_
Past-the-end iterator of peaks in the current spectrum.
Definition: AreaIterator.h:124
SpectrumIteratorT SpectrumIteratorType
Definition: AreaIterator.h:67
~AreaIterator()=default
Destructor.
ReferenceT reference
The reference type as returned by operator*()
Definition: AreaIterator.h:152
pointer operator->() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:239
PeakIteratorType current_peak_
Iterator to the current peak.
Definition: AreaIterator.h:122
static Param end()
return the end-iterator
Definition: AreaIterator.h:89
friend AreaIterator
Definition: AreaIterator.h:74
CoordinateType getRT() const
returns the retention time of the current scan
Definition: AreaIterator.h:245
int8_t ms_level_
Only scans of this MS level are iterated over.
Definition: AreaIterator.h:135
reference operator*() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:233
CoordinateType low_mz_
low m/z boundary
Definition: AreaIterator.h:127
bool operator==(const AreaIterator &rhs) const
Test for equality.
Definition: AreaIterator.h:189
PointerT pointer
The pointer type as returned by operator->()
Definition: AreaIterator.h:154
Definition: AreaIterator.h:72
ValueT value_type
The iterator's value type.
Definition: AreaIterator.h:150
Definition: RangeManager.h:482
Param & highIM(CoordinateType high_im)
high ion mobility boundary
Definition: AreaIterator.h:109
bool operator!=(const AreaIterator &rhs) const
Test for inequality.
Definition: AreaIterator.h:203
Param & msLevel(int8_t ms_level)
Only scans of this MS level are iterated over.
Definition: AreaIterator.h:111
bool is_end_
Flag that indicates that this iterator is the end iterator.
Definition: AreaIterator.h:137
PeakIndex getPeakIndex() const
returns the PeakIndex corresponding to the current iterator position
Definition: AreaIterator.h:257
AreaIterator & operator++()
Step forward by one (prefix operator)
Definition: AreaIterator.h:209
Index of a peak or feature.
Definition: PeakIndex.h:50