OpenMS
AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param Class Reference

#include <OpenMS/KERNEL/AreaIterator.h>

Collaboration diagram for AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param:
[legend]

Public Member Functions

 Param (SpectrumIteratorType first, SpectrumIteratorType begin, SpectrumIteratorType end, uint8_t ms_level)
 C'tor with mandatory parameters. More...
 
Paramoperator= (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...
 
ParamlowMZ (CoordinateType low_mz)
 low m/z boundary More...
 
ParamhighMZ (CoordinateType high_mz)
 high m/z boundary More...
 
ParamlowIM (CoordinateType low_im)
 low ion mobility boundary More...
 
ParamhighIM (CoordinateType high_im)
 high ion mobility boundary More...
 
ParammsLevel (int8_t ms_level)
 Only scans of this MS level are iterated over. More...
 
 Param ()=default
 only used internally for end() More...
 

Detailed Description

template<class ValueT, class ReferenceT, class PointerT, class SpectrumIteratorT, class PeakIteratorT>
class OpenMS::Internal::AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::Param

Parameters for the AreaIterator Required values must be set in the C'tor. Optional values can be set via member functions (which allow chaining).

Constructor & Destructor Documentation

◆ Param() [1/2]

Param ( SpectrumIteratorType  first,
SpectrumIteratorType  begin,
SpectrumIteratorType  end,
uint8_t  ms_level 
)
inline

C'tor with mandatory parameters.

Parameters
firstThe very first spectrum of the experiment
beginThe first spectrum with a valid RT/IM time
endThe last spectrum with a valid RT/IM time
ms_levelOnly peaks from spectra with this ms_level are used

◆ Param() [2/2]

Param ( )
privatedefault

only used internally for end()

Member Function Documentation

◆ end()

static Param end ( )
inlinestatic

◆ highIM()

◆ highMZ()

◆ lowIM()

◆ lowMZ()

◆ msLevel()

Param& msLevel ( int8_t  ms_level)
inline

◆ operator=()

Param& operator= ( const Param rhs)
default

Assignment operator.

Member Data Documentation

◆ AreaIterator

friend AreaIterator
private

◆ current_peak_

◆ current_scan_

◆ end_peak_

◆ end_scan_

◆ first_

SpectrumIteratorType first_
protected

Iterator to the first scan of the map (needed to calculate the index)

Referenced by AreaIterator< ValueT, ReferenceT, PointerT, SpectrumIteratorT, PeakIteratorT >::getPeakIndex().

◆ high_im_

◆ high_mz_

◆ is_end_

◆ low_im_

◆ low_mz_

◆ ms_level_