35 #ifndef OPENMS_KERNEL_CHROMATOGRAMPEAK_H
36 #define OPENMS_KERNEL_CHROMATOGRAMPEAK_H
84 position_(p.position_),
85 intensity_(p.intensity_)
161 position_ = position;
169 if (
this == &rhs)
return *
this;
180 #pragma clang diagnostic push
181 #pragma clang diagnostic ignored "-Wfloat-equal"
183 #pragma clang diagnostic pop
189 return !(operator==(rhs));
201 std::binary_function<ChromatogramPeak, ChromatogramPeak, bool>
227 public std::binary_function<ChromatogramPeak, ChromatogramPeak, bool>
236 return left.
getRT() < right;
241 return left < right.
getRT();
253 public std::binary_function<ChromatogramPeak, ChromatogramPeak, bool>
288 #endif // OPENMS_KERNEL_CHROMATOGRAMPEAK_H
void setRT(CoordinateType rt)
Mutable access to RT.
Definition: ChromatogramPeak.h:117
bool operator()(ChromatogramPeak const &left, ChromatogramPeak const &right) const
Definition: ChromatogramPeak.h:203
ChromatogramPeak(const ChromatogramPeak &p)
Copy constructor.
Definition: ChromatogramPeak.h:83
void setPos(CoordinateType pos)
Alias for setRT()
Definition: ChromatogramPeak.h:129
CoordinateType getMZ() const
Alias for getRT()
Definition: ChromatogramPeak.h:135
bool operator!=(const ChromatogramPeak &rhs) const
Equality operator.
Definition: ChromatogramPeak.h:187
bool operator()(IntensityType left, IntensityType right) const
Definition: ChromatogramPeak.h:218
PositionType position_
The data point position.
Definition: ChromatogramPeak.h:278
bool operator()(const PositionType &left, const PositionType &right) const
Definition: ChromatogramPeak.h:270
bool operator()(ChromatogramPeak const &left, CoordinateType right) const
Definition: ChromatogramPeak.h:234
bool operator()(const ChromatogramPeak &left, const ChromatogramPeak &right) const
Definition: ChromatogramPeak.h:229
~ChromatogramPeak()
Destructor.
Definition: ChromatogramPeak.h:96
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: ChromatogramPeak.h:147
bool operator()(CoordinateType left, ChromatogramPeak const &right) const
Definition: ChromatogramPeak.h:239
ChromatogramPeak & operator=(const ChromatogramPeak &rhs)
Assignment operator.
Definition: ChromatogramPeak.h:167
double CoordinateType
Coordinate type.
Definition: ChromatogramPeak.h:69
Comparator by position. As this class has dimension 1, this is basically an alias for RTLess...
Definition: ChromatogramPeak.h:252
DPosition< 1 > PositionType
Position type.
Definition: ChromatogramPeak.h:67
CoordinateType getRT() const
Non-mutable access to RT.
Definition: ChromatogramPeak.h:111
bool operator()(CoordinateType left, CoordinateType right) const
Definition: ChromatogramPeak.h:244
PositionType & getPosition()
Mutable access to the position.
Definition: ChromatogramPeak.h:153
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
bool operator()(IntensityType left, ChromatogramPeak const &right) const
Definition: ChromatogramPeak.h:213
Comparator that allows to compare the indices of two peaks by their intensity.
Definition: FeaFiModule.h:56
double IntensityType
Intensity type.
Definition: ChromatogramPeak.h:65
bool operator()(const ChromatogramPeak &left, const PositionType &right) const
Definition: ChromatogramPeak.h:260
bool operator()(const PositionType &left, const ChromatogramPeak &right) const
Definition: ChromatogramPeak.h:265
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: ChromatogramPeak.h:108
bool operator()(ChromatogramPeak const &left, IntensityType right) const
Definition: ChromatogramPeak.h:208
IntensityType getIntensity() const
Non-mutable access to the data point intensity (height)
Definition: ChromatogramPeak.h:106
A 1-dimensional raw data point or peak for chromatograms.
Definition: ChromatogramPeak.h:55
IntensityType intensity_
The data point intensity.
Definition: ChromatogramPeak.h:280
void setMZ(CoordinateType rt)
Alias for setRT()
Definition: ChromatogramPeak.h:141
bool operator==(const ChromatogramPeak &rhs) const
Equality operator.
Definition: ChromatogramPeak.h:178
Comparator by RT position.
Definition: ChromatogramPeak.h:226
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: ChromatogramPeak.h:159
CoordinateType getPos() const
Alias for getRT()
Definition: ChromatogramPeak.h:123
bool operator()(const ChromatogramPeak &left, const ChromatogramPeak &right) const
Definition: ChromatogramPeak.h:255