35 #ifndef OPENMS_KERNEL_PEAK1D_H 36 #define OPENMS_KERNEL_PEAK1D_H 80 inline Peak1D(PositionType a, IntensityType b) :
87 position_(p.position_),
88 intensity_(p.intensity_)
107 inline IntensityType getIntensity()
const {
return intensity_; }
111 inline void setIntensity(IntensityType intensity) { intensity_ = intensity; }
120 inline void setMZ(CoordinateType mz)
152 position_ = position;
160 if (
this == &rhs)
return *
this;
171 #pragma clang diagnostic push 172 #pragma clang diagnostic ignored "-Wfloat-equal" 174 #pragma clang diagnostic pop 190 std::binary_function<Peak1D, Peak1D, bool>
207 inline bool operator()(IntensityType left, IntensityType right)
const 216 public std::binary_function<Peak1D, Peak1D, bool>
225 return left.
getMZ() < right;
230 return left < right.
getMZ();
233 inline bool operator()(CoordinateType left, CoordinateType right)
const 242 public std::binary_function<Peak1D, Peak1D, bool>
259 inline bool operator()(
const PositionType & left,
const PositionType & right)
const 275 OPENMS_DLLAPI std::ostream &
operator<<(std::ostream & os,
const Peak1D & point);
279 #endif // OPENMS_KERNEL_PEAK1D_H Peak1D & operator=(const Peak1D &rhs)
Assignment operator.
Definition: Peak1D.h:158
bool operator()(Peak1D const &left, IntensityType right) const
Definition: Peak1D.h:197
bool operator()(Peak1D const &left, CoordinateType right) const
Definition: Peak1D.h:223
PositionType & getPosition()
Mutable access to the position.
Definition: Peak1D.h:144
CoordinateType getMZ() const
Non-mutable access to m/z.
Definition: Peak1D.h:114
bool operator()(const Peak1D &left, const PositionType &right) const
Definition: Peak1D.h:249
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:218
PositionType const & getPosition() const
Non-mutable access to the position.
Definition: Peak1D.h:138
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
bool operator()(IntensityType left, IntensityType right) const
Definition: Peak1D.h:207
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool operator==(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:169
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:120
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:111
bool operator!=(const Peak1D &rhs) const
Equality operator.
Definition: Peak1D.h:178
Comparator by position. As this class has dimension 1, this is basically an alias for MZLess...
Definition: Peak1D.h:241
bool operator()(const PositionType &left, const Peak1D &right) const
Definition: Peak1D.h:254
bool operator()(const PositionType &left, const PositionType &right) const
Definition: Peak1D.h:259
Peak1D()
Definition: Peak1D.h:74
double CoordinateType
Coordinate type.
Definition: Peak1D.h:68
bool operator()(Peak1D const &left, Peak1D const &right) const
Definition: Peak1D.h:192
PositionType position_
The data point position.
Definition: Peak1D.h:269
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: Peak1D.h:150
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:55
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
CoordinateType getPos() const
Alias for getMZ()
Definition: Peak1D.h:126
Peak1D(const Peak1D &p)
Copy constructor.
Definition: Peak1D.h:86
Comparator by m/z position.
Definition: Peak1D.h:215
bool operator()(const Peak1D &left, const Peak1D &right) const
Definition: Peak1D.h:244
bool operator()(CoordinateType left, CoordinateType right) const
Definition: Peak1D.h:233
Peak1D(PositionType a, IntensityType b)
construct with position and intensity
Definition: Peak1D.h:80
bool operator()(CoordinateType left, Peak1D const &right) const
Definition: Peak1D.h:228
float IntensityType
Intensity type.
Definition: Peak1D.h:64
IntensityType intensity_
The data point intensity.
Definition: Peak1D.h:271
void setPos(CoordinateType pos)
Alias for setMZ()
Definition: Peak1D.h:132
bool operator()(IntensityType left, Peak1D const &right) const
Definition: Peak1D.h:202
DPosition< 1 > PositionType
Position type.
Definition: Peak1D.h:66
IntensityType getIntensity() const
Definition: Peak1D.h:109
~Peak1D()
Destructor.
Definition: Peak1D.h:99