| OpenMS 2.5.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 >:

## 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
IntensityIteratorWrapper & | operator++ ()
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

References IntensityIteratorWrapper< IteratorT >::base.

## ◆ operator*()

value_type operator* | ( |  | ) |

inline

References IntensityIteratorWrapper< IteratorT >::base.

## ◆ operator++() [1/2]

IntensityIteratorWrapper& operator++ | ( |  | ) |

inline

References IntensityIteratorWrapper< IteratorT >::base.

## ◆ operator++() [2/2]

IntensityIteratorWrapper operator++ | ( | int |  | ) |

inline

## ◆ operator-()

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

inline

References IntensityIteratorWrapper< IteratorT >::base.

## ◆ operator==()

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

inline

References IntensityIteratorWrapper< IteratorT >::base.

## ◆ operator[]()

value_type operator[] | ( | const IndexT & | index | ) |

inline

References IntensityIteratorWrapper< IteratorT >::base.

## Member Data Documentation

## ◆ base

IteratorT base

protected

Referenced by IntensityIteratorWrapper< IteratorT >::operator!=(), IntensityIteratorWrapper< IteratorT >::operator*(), IntensityIteratorWrapper< IteratorT >::operator++(), IntensityIteratorWrapper< IteratorT >::operator-(), IntensityIteratorWrapper< IteratorT >::operator==(), and IntensityIteratorWrapper< IteratorT >::operator[]().