34 template<
class ValueT,
class ReferenceT,
class Po
interT,
class SpectrumIteratorT,
class PeakIteratorT>
42 using SpectrumT =
typename std::iterator_traits<SpectrumIteratorType>::value_type;
201 return !(*
this == rhs);
Definition: AreaIterator.h:47
Param & highIM(CoordinateType high_im)
high ion mobility boundary
Definition: AreaIterator.h:94
Param & lowIM(CoordinateType low_im)
low ion mobility boundary
Definition: AreaIterator.h:88
SpectrumIteratorType current_scan_
Iterator to the current spectrum.
Definition: AreaIterator.h:111
CoordinateType low_mz_
low m/z boundary
Definition: AreaIterator.h:120
CoordinateType high_mz_
high m/z boundary
Definition: AreaIterator.h:122
PeakIteratorType end_peak_
Past-the-end iterator of peaks in the current spectrum.
Definition: AreaIterator.h:117
Param & lowMZ(CoordinateType low_mz)
low m/z boundary
Definition: AreaIterator.h:76
int8_t ms_level_
Only scans of this MS level are iterated over.
Definition: AreaIterator.h:128
Param & operator=(const Param &rhs)=default
Assignment operator.
bool is_end_
Flag that indicates that this iterator is the end iterator.
Definition: AreaIterator.h:130
PeakIteratorType current_peak_
Iterator to the current peak.
Definition: AreaIterator.h:115
friend AreaIterator
Definition: AreaIterator.h:48
SpectrumIteratorType first_
Iterator to the first scan of the map (needed to calculate the index)
Definition: AreaIterator.h:109
Param & msLevel(int8_t ms_level)
Only scans of this MS level are iterated over.
Definition: AreaIterator.h:100
Param()=default
only used internally for end()
CoordinateType high_im_
high mobility boundary
Definition: AreaIterator.h:126
SpectrumIteratorType end_scan_
Past-the-end iterator of spectra.
Definition: AreaIterator.h:113
static Param end()
return the end-iterator
Definition: AreaIterator.h:62
Param & highMZ(CoordinateType high_mz)
high m/z boundary
Definition: AreaIterator.h:82
Param(SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, uint8_t ms_level)
C'tor with mandatory parameters.
Definition: AreaIterator.h:57
CoordinateType low_im_
low mobility boundary
Definition: AreaIterator.h:124
Forward iterator for an area of peaks in an experiment.
Definition: AreaIterator.h:36
AreaIterator(const AreaIterator &rhs)=default
Copy constructor.
bool operator!=(const AreaIterator &rhs) const
Test for inequality.
Definition: AreaIterator.h:199
std::forward_iterator_tag iterator_category
The iterator's category type.
Definition: AreaIterator.h:142
PointerT pointer
The pointer type as returned by operator->()
Definition: AreaIterator.h:148
double CoordinateType
Definition: AreaIterator.h:38
ValueT value_type
The iterator's value type.
Definition: AreaIterator.h:144
AreaIterator(const Param &p)
Constructor for the begin iterator.
Definition: AreaIterator.h:154
AreaIterator & operator++()
Step forward by one (prefix operator)
Definition: AreaIterator.h:205
AreaIterator()
Default constructor (for the end iterator)
Definition: AreaIterator.h:160
unsigned int difference_type
The difference type.
Definition: AreaIterator.h:150
Param p_
holds spectra iterators and area limits
Definition: AreaIterator.h:301
PeakIteratorT PeakIteratorType
Definition: AreaIterator.h:41
CoordinateType getDriftTime() const
returns the ion mobility time of the current scan
Definition: AreaIterator.h:248
AreaIterator operator++(int)
Step forward by one (postfix operator)
Definition: AreaIterator.h:222
bool operator==(const AreaIterator &rhs) const
Test for equality.
Definition: AreaIterator.h:184
reference operator*() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:230
ReferenceT reference
The reference type as returned by operator*()
Definition: AreaIterator.h:146
void nextScan_()
advances the iterator to the next valid peak in the next valid spectrum
Definition: AreaIterator.h:274
~AreaIterator()=default
Destructor.
ValueT PeakType
Definition: AreaIterator.h:39
typename std::iterator_traits< SpectrumIteratorType >::value_type SpectrumT
Definition: AreaIterator.h:42
SpectrumIteratorT SpectrumIteratorType
Definition: AreaIterator.h:40
AreaIterator & operator=(const AreaIterator &rhs)
Assignment operator.
Definition: AreaIterator.h:171
PeakIndex getPeakIndex() const
returns the PeakIndex corresponding to the current iterator position
Definition: AreaIterator.h:260
const SpectrumT & getSpectrum() const
returns the current scan into which the iterator points
Definition: AreaIterator.h:254
pointer operator->() const
Dereferencing of this pointer yields the underlying peak.
Definition: AreaIterator.h:236
CoordinateType getRT() const
returns the retention time of the current scan
Definition: AreaIterator.h:242
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Index of a peak or feature.
Definition: PeakIndex.h:25
Definition: RangeManager.h:463