116 static char const *
const dimension_name_short_[DIMENSION];
119 static char const *
const dimension_name_full_[DIMENSION];
122 static char const *
const dimension_unit_short_[DIMENSION];
125 static char const *
const dimension_unit_full_[DIMENSION];
174 intensity_ = intensity;
192 position_ = position;
198 return position_[
MZ];
204 position_[
MZ] = coordinate;
210 return position_[
RT];
216 position_[
RT] = coordinate;
230 #pragma clang diagnostic push
231 #pragma clang diagnostic ignored "-Wfloat-equal"
233 #pragma clang diagnostic pop
283 return left.
getRT() < right;
288 return left < right.
getRT();
308 return left.
getMZ() < right;
313 return left < right.
getMZ();
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:55
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition: Peak2D.h:196
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak2D.h:178
Peak2D & operator=(const Peak2D &rhs)=default
Assignment operator.
void setMZ(CoordinateType coordinate)
Mutable access to the m/z coordinate (index 1)
Definition: Peak2D.h:202
Peak2D(const PositionType &pos, const IntensityType in)
Member constructor.
Definition: Peak2D.h:140
float IntensityType
Intensity type.
Definition: Peak2D.h:62
double CoordinateType
Coordinate type (of the position)
Definition: Peak2D.h:64
void setRT(CoordinateType coordinate)
Mutable access to the RT coordinate (index 0)
Definition: Peak2D.h:214
bool operator==(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:228
static char const * fullDimensionName(UInt const dim)
Full name of the dimension (self-explanatory form)
PositionType position_
The data point position.
Definition: Peak2D.h:354
static char const * shortDimensionUnitRT()
Unit of measurement (abbreviated form)
static char const * fullDimensionUnitRT()
Unit of measurement (self-explanatory form)
static char const * shortDimensionUnitMZ()
Unit of measurement (abbreviated form)
static char const * shortDimensionNameMZ()
Short name of the dimension (abbreviated form)
static char const * fullDimensionNameRT()
Full name of the dimension (self-explanatory form)
IntensityType getIntensity() const
Definition: Peak2D.h:166
Peak2D & operator=(Peak2D &&) &=default
Move assignment operator.
Peak2D(Peak2D &&)=default
Move constructor.
static char const * shortDimensionUnit(UInt const dim)
Unit of measurement (abbreviated form)
void setIntensity(IntensityType intensity)
Sets data point intensity (height)
Definition: Peak2D.h:172
void setPosition(const PositionType &position)
Mutable access to the position.
Definition: Peak2D.h:190
DimensionDescription
This enum maps the symbolic names of the dimensions to numbers.
Definition: Peak2D.h:74
friend std::ostream & operator<<(std::ostream &os, const Peak2D &point)
Print the contents to a stream.
DPosition< 2 > PositionType
Position type.
Definition: Peak2D.h:66
bool operator!=(const Peak2D &rhs) const
Equality operator.
Definition: Peak2D.h:237
static char const * shortDimensionName(UInt const dim)
Short name of the dimension (abbreviated form)
IntensityType intensity_
The data point intensity.
Definition: Peak2D.h:356
static char const * fullDimensionUnit(UInt const dim)
Unit of measurement (self-explanatory form)
static char const * fullDimensionNameMZ()
Full name of the dimension (self-explanatory form)
static char const * fullDimensionUnitMZ()
Unit of measurement (self-explanatory form)
static char const * shortDimensionNameRT()
Short name of the dimension (abbreviated form)
PositionType & getPosition()
Mutable access to the position.
Definition: Peak2D.h:184
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
~Peak2D()
Destructor.
Definition: Peak2D.h:159
Peak2D(const Peak2D &p)=default
Copy constructor.
Peak2D()
Definition: Peak2D.h:134
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:251
bool operator()(const Peak2D &left, IntensityType right) const
Definition: Peak2D.h:256
bool operator()(IntensityType left, const Peak2D &right) const
Definition: Peak2D.h:261
bool operator()(IntensityType left, IntensityType right) const
Definition: Peak2D.h:266
Comparator by m/z position.
Definition: Peak2D.h:300
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:316
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:301
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:311
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:306
Comparator by position. Lexicographical comparison (first RT then m/z) is done.
Definition: Peak2D.h:325
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak2D.h:341
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:326
bool operator()(const Peak2D &left, const PositionType &right) const
Definition: Peak2D.h:331
bool operator()(const PositionType &left, const Peak2D &right) const
Definition: Peak2D.h:336
Comparator by RT position.
Definition: Peak2D.h:275
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak2D.h:291
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition: Peak2D.h:276
bool operator()(CoordinateType left, const Peak2D &right) const
Definition: Peak2D.h:286
bool operator()(const Peak2D &left, CoordinateType right) const
Definition: Peak2D.h:281