|
OpenMS
2.5.0
|
Go to the documentation of this file.
41 #include <OpenMS/OpenMSConfig.h>
92 QualityType getOverallQuality()
const;
96 void setOverallQuality(QualityType q);
99 QualityType getQuality(
Size index)
const;
101 void setQuality(
Size index, QualityType q);
110 const std::vector<ConvexHull2D>& getConvexHulls()
const;
113 std::vector<ConvexHull2D>& getConvexHulls();
115 void setConvexHulls(
const std::vector<ConvexHull2D>& hulls);
125 bool encloses(
double rt,
double mz)
const;
138 const std::vector<Feature>& getSubordinates()
const;
141 std::vector<Feature>& getSubordinates();
144 void setSubordinates(
const std::vector<Feature>& rhs);
158 template <
typename Type>
161 Size assignments = 0;
162 assignments += ((*this).*member_function)();
163 for (std::vector<Feature>::iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
165 assignments += iter->applyMemberFunction(member_function);
171 template <
typename Type>
174 Size assignments = 0;
175 assignments += ((*this).*member_function)();
176 for (std::vector<Feature>::const_iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
178 assignments += iter->applyMemberFunction(member_function);
186 QualityType qualities_[2];
QualityLess OverallQualityLess
Compare by quality.
Definition: Feature.h:104
bool convex_hulls_modified_
Flag that indicates if the overall convex hull needs to be recomputed (i.e. mass trace convex hulls w...
Definition: Feature.h:192
A basic LC-MS feature.
Definition: BaseFeature.h:56
std::vector< Feature > subordinates_
subordinate features (e.g. features that represent alternative explanations, usually with lower quali...
Definition: Feature.h:198
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: Feature.h:172
std::vector< ConvexHull2D > convex_hulls_
Array of convex hulls (one for each mass trace)
Definition: Feature.h:189
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ConvexHull2D convex_hull_
Overall convex hull of the feature.
Definition: Feature.h:195
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
An LC-MS feature.
Definition: Feature.h:70
Compare by quality.
Definition: BaseFeature.h:115
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the feature (including subordinates). The returned values are ac...
Definition: Feature.h:159