Handles the management of a position and intensity range. More...
#include <OpenMS/KERNEL/RangeManager.h>
Public Types | |
enum | { DIMENSION = D } |
Dimension of the position range. More... | |
typedef DRange< D > | PositionRangeType |
Position range type. More... | |
typedef DPosition< D > | PositionType |
Position Type. More... | |
typedef DRange< 1 > | IntensityRangeType |
Intensity range type. More... | |
Public Member Functions | |
RangeManager () | |
Default constructor. More... | |
RangeManager (const RangeManager &rhs) | |
Copy constructor. More... | |
virtual | ~RangeManager () |
Destructor. More... | |
RangeManager & | operator= (const RangeManager &rhs) |
Assignment operator. More... | |
bool | operator== (const RangeManager &rhs) const |
Equality operator. More... | |
bool | operator!= (const RangeManager &rhs) const |
Equality operator. More... | |
Range methods | |
| |
const PositionType & | getMin () const |
Returns the minimum position. More... | |
const PositionType & | getMax () const |
Returns the maximum position. More... | |
double | getMinInt () const |
Returns the minimum intensity. More... | |
double | getMaxInt () const |
Returns the maximum intensity. More... | |
virtual void | updateRanges ()=0 |
Updates minimum and maximum position/intensity. More... | |
void | clearRanges () |
Resets the ranges. More... | |
Protected Member Functions | |
template<class PeakIteratorType > | |
void | updateRanges_ (const PeakIteratorType &begin, const PeakIteratorType &end) |
Updates the range using data points in the iterator range. More... | |
Protected Attributes | |
IntensityRangeType | int_range_ |
Intensity range (1-dimensional) More... | |
PositionRangeType | pos_range_ |
Position range (D-dimensional) More... | |
Handles the management of a position and intensity range.
This is needed for all peak and feature container like Spectrum, MSExperiment and FeatureMap.
typedef DRange<1> IntensityRangeType |
Intensity range type.
typedef DRange<D> PositionRangeType |
Position range type.
typedef DPosition<D> PositionType |
Position Type.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inlinevirtual |
Destructor.
|
inline |
Resets the ranges.
|
inline |
Returns the maximum position.
|
inline |
Returns the maximum intensity.
|
inline |
Returns the minimum position.
|
inline |
Returns the minimum intensity.
|
inline |
Equality operator.
|
inline |
Assignment operator.
|
inline |
Equality operator.
Referenced by RangeManager< 2 >::operator!=().
|
pure virtual |
Updates minimum and maximum position/intensity.
This method is usually implemented by calling clearRanges() and updateRanges_().
Implemented in MSExperiment, ConsensusMap, FeatureMap, MSChromatogram, and MSSpectrum.
Referenced by RangeManager< 2 >::getMaxInt().
|
inlineprotected |
Updates the range using data points in the iterator range.
|
protected |
Intensity range (1-dimensional)
Referenced by RangeManager< 2 >::clearRanges(), RangeManager< 2 >::getMaxInt(), RangeManager< 2 >::getMinInt(), RangeManager< 2 >::operator=(), and RangeManager< 2 >::operator==().
|
protected |
Position range (D-dimensional)
Referenced by RangeManager< 2 >::clearRanges(), RangeManager< 2 >::getMax(), RangeManager< 2 >::getMin(), RangeManager< 2 >::operator=(), and RangeManager< 2 >::operator==().
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:12 using doxygen 1.8.13 |