OpenMS  2.7.0
Public Types | Public Member Functions | Protected Attributes | List of all members
IntensityIteratorWrapper< IteratorT > Class Template Reference

An iterator wrapper to access peak intensities instead of the peak itself. More...

#include <OpenMS/FILTERING/BASELINE/MorphologicalFilter.h>

Inheritance diagram for IntensityIteratorWrapper< IteratorT >:
[legend]
Collaboration diagram for IntensityIteratorWrapper< IteratorT >:
[legend]

Public Types

typedef IteratorT::value_type::IntensityType value_type
 
typedef IteratorT::value_type::IntensityType & reference
 
typedef IteratorT::value_type::IntensityType * pointer
 
typedef IteratorT::difference_type difference_type
 

Public Member Functions

 IntensityIteratorWrapper (const IteratorT &rhs)
 
value_type operator* ()
 
template<typename IndexT >
value_type operator[] (const IndexT &index)
 
difference_type operator- (IntensityIteratorWrapper &rhs) const
 
IntensityIteratorWrapperoperator++ ()
 
IntensityIteratorWrapper operator++ (int)
 
bool operator== (const IntensityIteratorWrapper &rhs) const
 
bool operator!= (const IntensityIteratorWrapper &rhs) const
 

Protected Attributes

IteratorT base
 

Detailed Description

template<typename IteratorT>
class OpenMS::Internal::IntensityIteratorWrapper< IteratorT >

An iterator wrapper to access peak intensities instead of the peak itself.

It is using unary operator *, and the like. This is not a full implementation of the iterator concept, it can only do what is needed for MorphologicalFilter.

Member Typedef Documentation

◆ difference_type

typedef IteratorT::difference_type difference_type

◆ pointer

typedef IteratorT::value_type::IntensityType* pointer

◆ reference

typedef IteratorT::value_type::IntensityType& reference

◆ value_type

typedef IteratorT::value_type::IntensityType value_type

Constructor & Destructor Documentation

◆ IntensityIteratorWrapper()

IntensityIteratorWrapper ( const IteratorT &  rhs)
inline

Member Function Documentation

◆ operator!=()

bool operator!= ( const IntensityIteratorWrapper< IteratorT > &  rhs) const
inline

◆ operator*()

value_type operator* ( )
inline

◆ operator++() [1/2]

IntensityIteratorWrapper& operator++ ( )
inline

◆ operator++() [2/2]

IntensityIteratorWrapper operator++ ( int  )
inline

◆ operator-()

difference_type operator- ( IntensityIteratorWrapper< IteratorT > &  rhs) const
inline

◆ operator==()

bool operator== ( const IntensityIteratorWrapper< IteratorT > &  rhs) const
inline

◆ operator[]()

value_type operator[] ( const IndexT &  index)
inline

Member Data Documentation

◆ base

IteratorT base
protected