OpenMS
|
#include <OpenMS/KERNEL/AreaIterator.h>
Public Member Functions | |
Param (SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, uint8_t ms_level) | |
C'tor with mandatory parameters. More... | |
Param & | operator= (const Param &rhs)=default |
Assignment operator. More... | |
Static Public Member Functions | |
static Param | end () |
return the end-iterator More... | |
Private Attributes | |
friend | AreaIterator |
Named parameter idiom for chaining | |
SpectrumIteratorType | first_ |
Iterator to the first scan of the map (needed to calculate the index) More... | |
SpectrumIteratorType | current_scan_ |
Iterator to the current spectrum. More... | |
SpectrumIteratorType | end_scan_ |
Past-the-end iterator of spectra. More... | |
PeakIteratorType | current_peak_ |
Iterator to the current peak. More... | |
PeakIteratorType | end_peak_ |
Past-the-end iterator of peaks in the current spectrum. More... | |
CoordinateType | low_mz_ = std::numeric_limits<CoordinateType>::lowest() |
low m/z boundary More... | |
CoordinateType | high_mz_ = std::numeric_limits<CoordinateType>::max() |
high m/z boundary More... | |
CoordinateType | low_im_ = std::numeric_limits<CoordinateType>::lowest() |
low mobility boundary More... | |
CoordinateType | high_im_ = std::numeric_limits<CoordinateType>::max() |
high mobility boundary More... | |
int8_t | ms_level_ {} |
Only scans of this MS level are iterated over. More... | |
bool | is_end_ = false |
Flag that indicates that this iterator is the end iterator. More... | |
Param & | lowMZ (CoordinateType low_mz) |
low m/z boundary More... | |
Param & | highMZ (CoordinateType high_mz) |
high m/z boundary More... | |
Param & | lowIM (CoordinateType low_im) |
low ion mobility boundary More... | |
Param & | highIM (CoordinateType high_im) |
high ion mobility boundary More... | |
Param & | msLevel (int8_t ms_level) |
Only scans of this MS level are iterated over. More... | |
Param ()=default | |
only used internally for end() More... | |
Parameters for the AreaIterator Required values must be set in the C'tor. Optional values can be set via member functions (which allow chaining).
|
inline |
C'tor with mandatory parameters.
first | The very first spectrum of the experiment |
begin | The first spectrum with a valid RT/IM time |
end | The last spectrum with a valid RT/IM time |
ms_level | Only peaks from spectra with this ms_level are used |
|
inlinestatic |
return the end-iterator
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::is_end_.
|
inline |
high ion mobility boundary
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::high_im_.
|
inline |
high m/z boundary
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::high_mz_.
|
inline |
low ion mobility boundary
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::low_im_.
|
inline |
low m/z boundary
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::low_mz_.
|
inline |
Only scans of this MS level are iterated over.
References AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::ms_level_.
|
private |
|
protected |
Iterator to the current peak.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getPeakIndex(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator*(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator++(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator->(), and AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator==().
|
protected |
Iterator to the current spectrum.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getDriftTime(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getPeakIndex(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getRT(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getSpectrum(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_(), and AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator++().
|
protected |
Past-the-end iterator of peaks in the current spectrum.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_(), and AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator++().
|
protected |
Past-the-end iterator of spectra.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_().
|
protected |
Iterator to the first scan of the map (needed to calculate the index)
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getPeakIndex().
|
protected |
|
protected |
|
protected |
Flag that indicates that this iterator is the end iterator.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::end(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getPeakIndex(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator++(), AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator=(), and AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::operator==().
|
protected |
|
protected |
|
protected |
Only scans of this MS level are iterated over.
Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param::msLevel(), and AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::nextScan_().