35 #ifndef OPENMS_KERNEL_FEATUREHANDLE_H
36 #define OPENMS_KERNEL_FEATUREHANDLE_H
45 class ConsensusFeature;
84 map_index_(map_index),
88 setUniqueId(element_index);
95 map_index_(map_index),
96 charge_(feature.getCharge()),
97 width_(feature.getWidth())
104 map_index_(rhs.map_index_),
105 charge_(rhs.charge_),
140 FeatureHandleMutable_ & asMutable()
const;
145 UInt64 getMapIndex()
const
186 return (Peak2D::operator==(i))
196 return !(operator==(i));
201 std::binary_function<FeatureHandle, FeatureHandle, bool>
253 #endif // OPENMS_KERNEL_FEATUREHANDLE_H
FeatureHandle & operator=(const FeatureHandle &rhs)
Assignment operator.
Definition: FeatureHandle.h:110
float Real
Real type.
Definition: Types.h:109
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:55
FeatureHandle(UInt64 map_index, const BaseFeature &feature)
Constructor from map index and basic feature.
Definition: FeatureHandle.h:92
FeatureHandle(UInt64 map_index, const Peak2D &point, UInt64 element_index)
Constructor with map index, element index and position.
Definition: FeatureHandle.h:82
bool operator()(FeatureHandle const &left, FeatureHandle const &right) const
Definition: FeatureHandle.h:203
void setMapIndex(UInt64 i)
Set the map index.
Definition: FeatureHandle.h:152
void setCharge(ChargeType charge)
Sets the charge.
Definition: FeatureHandle.h:158
std::ostream & operator<<(std::ostream &os, const ItraqQuantifier::ItraqQuantifierStats &stats)
Size setUniqueId()
Assigns a new, valid unique id. Always returns 1.
Definition: UniqueIdInterface.h:150
Peak2D & operator=(const Peak2D &rhs)
Assignment operator.
Definition: Peak2D.h:217
Comparator by map and unique id.
Definition: FeatureHandle.h:200
void setWidth(WidthType width)
Sets the width (FWHM)
Definition: FeatureHandle.h:170
Int charge_
Charge of the feature.
Definition: FeatureHandle.h:221
bool operator!=(const FeatureHandle &i) const
Equality operator.
Definition: FeatureHandle.h:194
A basic LC-MS feature.
Definition: BaseFeature.h:55
ChargeType getCharge() const
Returns the charge.
Definition: FeatureHandle.h:164
Int ChargeType
Charge type.
Definition: FeatureHandle.h:65
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:75
FeatureHandle(const FeatureHandle &rhs)
Copy constructor.
Definition: FeatureHandle.h:101
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:51
UInt64 map_index_
Index of the element's container.
Definition: FeatureHandle.h:219
Real WidthType
Feature width type.
Definition: FeatureHandle.h:67
bool operator==(const FeatureHandle &i) const
Equality operator.
Definition: FeatureHandle.h:184
FeatureHandleMutable_ & asMutable() const
Override (most of all) constness.
Definition: FeatureHandle.h:243
Representation of a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:54
UniqueIdInterface & operator=(UniqueIdInterface const &rhs)
Assignment operator - copies the unique id.
Definition: UniqueIdInterface.h:89
bool operator==(UniqueIdInterface const &rhs) const
Equality comparison operator - the unique ids must be equal (!)
Definition: UniqueIdInterface.h:102
Helper class returned by FeatureHandle::asMutable(), which see.
Definition: FeatureHandle.h:233
int Int
Signed integer type.
Definition: Types.h:100
WidthType getWidth() const
Returns the width (FWHM)
Definition: FeatureHandle.h:176
virtual ~FeatureHandle()
Destructor.
Definition: FeatureHandle.h:122
Real width_
Width of the feature (FWHM)
Definition: FeatureHandle.h:223
UInt64 getUniqueId() const
Non-mutable access to unique id - returns the unique id.
Definition: UniqueIdInterface.h:109