91 static char const *
const dimension_name_short_[DIMENSION];
94 static char const *
const dimension_name_full_[DIMENSION];
97 static char const *
const dimension_unit_short_[DIMENSION];
100 static char const *
const dimension_unit_full_[DIMENSION];
151 intensity_ = intensity;
169 position_ = position;
175 return position_[
MZ];
181 position_[
MZ] = coordinate;
187 return position_[
RT];
193 position_[
RT] = coordinate;
248 return left.
getRT() < right;
253 return left < right.
getRT();
273 return left.
getMZ() < right;
278 return left < right.
getMZ();
Representation of a coordinate in D-dimensional space.
Definition DPosition.h:32
A 2-dimensional raw data point or peak.
Definition Peak2D.h:30
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition Peak2D.h:173
static char const * shortDimensionNameMZ()
Short name of the dimension (abbreviated form)
void setMZ(CoordinateType coordinate)
Mutable access to the m/z coordinate (index 1)
Definition Peak2D.h:179
Peak2D(Peak2D &&) noexcept=default
Move constructor.
static char const * fullDimensionNameMZ()
Full name of the dimension (self-explanatory form)
static char const * fullDimensionUnitRT()
Unit of measurement (self-explanatory form)
PositionType const & getPosition() const
Non-mutable access to the position.
Definition Peak2D.h:155
static char const * shortDimensionUnitRT()
Unit of measurement (abbreviated form)
Peak2D(const PositionType &pos, const IntensityType in)
Member constructor.
Definition Peak2D.h:112
float IntensityType
Intensity type.
Definition Peak2D.h:37
double CoordinateType
Coordinate type (of the position)
Definition Peak2D.h:39
void setRT(CoordinateType coordinate)
Mutable access to the RT coordinate (index 0)
Definition Peak2D.h:191
static char const * fullDimensionUnit(UInt const dim)
Unit of measurement (self-explanatory form)
static char const * shortDimensionUnit(UInt const dim)
Unit of measurement (abbreviated form)
static char const * fullDimensionName(UInt const dim)
Full name of the dimension (self-explanatory form)
IntensityType getIntensity() const
Definition Peak2D.h:143
friend std::ostream & operator<<(std::ostream &os, const Peak2D &point)
Print the contents to a stream.
static char const * fullDimensionUnitMZ()
Unit of measurement (self-explanatory form)
static char const * fullDimensionNameRT()
Full name of the dimension (self-explanatory form)
void setIntensity(IntensityType intensity)
Sets data point intensity (height)
Definition Peak2D.h:149
static char const * shortDimensionUnitMZ()
Unit of measurement (abbreviated form)
PositionType & getPosition()
Mutable access to the position.
Definition Peak2D.h:161
void setPosition(const PositionType &position)
Mutable access to the position.
Definition Peak2D.h:167
DimensionDescription
This enum maps the symbolic names of the dimensions to numbers.
Definition Peak2D.h:49
DPosition< 2 > PositionType
Position type.
Definition Peak2D.h:41
bool operator!=(const Peak2D &rhs) const
Equality operator.
Definition Peak2D.h:202
static char const * shortDimensionNameRT()
Short name of the dimension (abbreviated form)
bool operator==(const Peak2D &rhs) const =default
Equality operator.
static char const * shortDimensionName(UInt const dim)
Short name of the dimension (abbreviated form)
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition Peak2D.h:185
Peak2D(const Peak2D &p)=default
Copy constructor.
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition Peak2D.h:216
bool operator()(const Peak2D &left, IntensityType right) const
Definition Peak2D.h:221
bool operator()(IntensityType left, const Peak2D &right) const
Definition Peak2D.h:226
bool operator()(IntensityType left, IntensityType right) const
Definition Peak2D.h:231
Comparator by m/z position.
Definition Peak2D.h:265
bool operator()(CoordinateType left, CoordinateType right) const
Definition Peak2D.h:281
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition Peak2D.h:266
bool operator()(CoordinateType left, const Peak2D &right) const
Definition Peak2D.h:276
bool operator()(const Peak2D &left, CoordinateType right) const
Definition Peak2D.h:271
Comparator by position. Lexicographical comparison (first RT then m/z) is done.
Definition Peak2D.h:290
bool operator()(const PositionType &left, const PositionType &right) const
Definition Peak2D.h:306
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition Peak2D.h:291
bool operator()(const Peak2D &left, const PositionType &right) const
Definition Peak2D.h:296
bool operator()(const PositionType &left, const Peak2D &right) const
Definition Peak2D.h:301
Comparator by RT position.
Definition Peak2D.h:240
bool operator()(CoordinateType left, CoordinateType right) const
Definition Peak2D.h:256
bool operator()(const Peak2D &left, const Peak2D &right) const
Definition Peak2D.h:241
bool operator()(CoordinateType left, const Peak2D &right) const
Definition Peak2D.h:251
bool operator()(const Peak2D &left, CoordinateType right) const
Definition Peak2D.h:246
std::size_t operator()(const OpenMS::Peak2D &p) const noexcept
Definition Peak2D.h:335