15#include <OpenMS/OpenMSConfig.h>
142 using FeatureHandle::setUniqueId;
143 using FeatureHandle::setMapIndex;
A basic LC-MS feature.
Definition BaseFeature.h:34
Helper class returned by FeatureHandle::asMutable(), which see.
Definition FeatureHandle.h:140
FeatureHandleMutable_(const FeatureHandleMutable_ &)
Representation of a Peak2D, RichPeak2D or Feature .
Definition FeatureHandle.h:36
FeatureHandle(UInt64 map_index, const BaseFeature &feature)
Constructor from map index and basic feature.
bool operator!=(const FeatureHandle &i) const
Equality operator.
bool operator==(const FeatureHandle &i) const
Equality operator.
FeatureHandle()
Default constructor.
UInt64 map_index_
Index of the element's container.
Definition FeatureHandle.h:124
UInt64 getMapIndex() const
Returns the map index.
FeatureHandleMutable_ & asMutable() const
Override (most of all) constness.
Definition FeatureHandle.h:148
float WidthType
Feature width type.
Definition FeatureHandle.h:46
void setMapIndex(UInt64 i)
Set the map index.
void setWidth(WidthType width)
Sets the width (FWHM)
FeatureHandle(const FeatureHandle &rhs)
Copy constructor.
WidthType getWidth() const
Returns the width (FWHM)
Int ChargeType
Charge type.
Definition FeatureHandle.h:44
~FeatureHandle() override
Destructor.
ChargeType getCharge() const
Returns the charge.
FeatureHandle & operator=(const FeatureHandle &rhs)
Assignment operator.
float width_
Width of the feature (FWHM)
Definition FeatureHandle.h:128
FeatureHandle(UInt64 map_index, const Peak2D &point, UInt64 element_index)
Constructor with map index, element index and position.
void setCharge(ChargeType charge)
Sets the charge.
Int charge_
Charge of the feature.
Definition FeatureHandle.h:126
A 2-dimensional raw data point or peak.
Definition Peak2D.h:30
friend std::ostream & operator<<(std::ostream &os, const Peak2D &point)
Print the contents to a stream.
A base class defining a common interface for all classes having a unique id.
Definition UniqueIdInterface.h:25
UInt64 getUniqueId() const
Non-mutable access to unique id - returns the unique id.
Definition UniqueIdInterface.h:78
int Int
Signed integer type.
Definition Types.h:72
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
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
Comparator by map and unique id.
Definition FeatureHandle.h:117
bool operator()(FeatureHandle const &left, FeatureHandle const &right) const
Definition FeatureHandle.h:155
std::size_t operator()(const OpenMS::FeatureHandle &fh) const noexcept
Definition FeatureHandle.h:176