OpenMS  2.8.0
Public Member Functions | Static Public Attributes | List of all members
RangeMobility Struct Reference

#include <OpenMS/KERNEL/RangeManager.h>

Inheritance diagram for RangeMobility:
[legend]
Collaboration diagram for RangeMobility:
[legend]

Public Member Functions

 RangeMobility ()=default
 
 RangeMobility (const double min, const double max)
 
void extendMobility (const double value)
 extend the range such that it includes the given value More...
 
bool containsMobility (const double value) const
 is value within [min, max]? More...
 
bool containsMobility (const RangeBase &inner_range) const
 is the range inner_range within [min, max] of this range? More...
 
Accessors for min and max

We use accessors, to keep range consistent (i.e. ensure that min <= max)

void setMinMobility (const double min)
 sets the minimum (and the maximum, if uninitialized) More...
 
void setMaxMobility (const double max)
 sets the maximum (and the minimum, if uninitialized) More...
 
double getMinMobility () const
 only useful if isEmpty() returns false More...
 
double getMaxMobility () const
 only useful if isEmpty() returns false More...
 
- Public Member Functions inherited from RangeBase
 RangeBase ()=default
 Ctor: initialize with empty range. More...
 
 RangeBase (const double min, const double max)
 
void clear ()
 make the range empty, i.e. isEmpty() will be true More...
 
bool isEmpty () const
 is the range empty (i.e. default constructed or cleared using clear())? More...
 
bool contains (const double value) const
 is value within [min, max]? More...
 
bool contains (const RangeBase &inner_range) const
 is the range inner_range within [min, max]? More...
 
void extend (const RangeBase &other)
 ensure the range includes the range of other More...
 
void extend (const double value)
 extend the range such that it includes the given value More...
 
void scaleBy (const double factor)
 Scale the range of the dimension by a factor. A factor > 1 increases the range; factor < 1 decreases it. More...
 
void assign (const RangeBase &rhs)
 
bool operator== (const RangeBase &rhs) const
 
void setMin (const double min)
 sets the minimum (and the maximum, if uninitialized) More...
 
void setMax (const double max)
 sets the maximum (and the minimum, if uninitialized) More...
 
double getMin () const
 only useful if isEmpty() returns false More...
 
double getMax () const
 only useful if isEmpty() returns false More...
 

Static Public Attributes

static const MSDim DIM = MSDim::IM
 

Additional Inherited Members

- Protected Attributes inherited from RangeBase
double min_ = std::numeric_limits<double>::max()
 
double max_ = -std::numeric_limits<double>::max()
 

Constructor & Destructor Documentation

◆ RangeMobility() [1/2]

RangeMobility ( )
default

◆ RangeMobility() [2/2]

RangeMobility ( const double  min,
const double  max 
)
inline

Member Function Documentation

◆ containsMobility() [1/2]

bool containsMobility ( const double  value) const
inline

is value within [min, max]?

References RangeBase::contains().

◆ containsMobility() [2/2]

bool containsMobility ( const RangeBase inner_range) const
inline

is the range inner_range within [min, max] of this range?

References RangeBase::contains().

◆ extendMobility()

void extendMobility ( const double  value)
inline

extend the range such that it includes the given value

◆ getMaxMobility()

double getMaxMobility ( ) const
inline

only useful if isEmpty() returns false

◆ getMinMobility()

double getMinMobility ( ) const
inline

only useful if isEmpty() returns false

◆ setMaxMobility()

void setMaxMobility ( const double  max)
inline

sets the maximum (and the minimum, if uninitialized)

◆ setMinMobility()

void setMinMobility ( const double  min)
inline

sets the minimum (and the maximum, if uninitialized)

Member Data Documentation

◆ DIM

const MSDim DIM = MSDim::IM
static