41 #include <OpenMS/OpenMSConfig.h> 95 QualityType getOverallQuality()
const;
99 void setOverallQuality(QualityType q);
102 QualityType getQuality(
Size index)
const;
104 void setQuality(
Size index, QualityType q);
113 const std::vector<ConvexHull2D>& getConvexHulls()
const;
116 std::vector<ConvexHull2D>& getConvexHulls();
118 void setConvexHulls(
const std::vector<ConvexHull2D>& hulls);
128 bool encloses(
double rt,
double mz)
const;
141 const std::vector<Feature>& getSubordinates()
const;
144 std::vector<Feature>& getSubordinates();
147 void setSubordinates(
const std::vector<Feature>& rhs);
161 template <
typename Type>
164 Size assignments = 0;
165 assignments += ((*this).*member_function)();
166 for (std::vector<Feature>::iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
168 assignments += iter->applyMemberFunction(member_function);
174 template <
typename Type>
177 Size assignments = 0;
178 assignments += ((*this).*member_function)();
179 for (std::vector<Feature>::const_iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
181 assignments += iter->applyMemberFunction(member_function);
196 QualityType qualities_[2];
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: Feature.h:175
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:162
Compare by quality.
Definition: BaseFeature.h:130
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
QualityLess OverallQualityLess
Compare by quality.
Definition: Feature.h:107
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling...
Definition: ConvexHull2D.h:72
A basic LC-MS feature.
Definition: BaseFeature.h:58
ConvexHull2D convex_hull_
Overall convex hull of the feature.
Definition: Feature.h:205
std::vector< ConvexHull2D > convex_hulls_
Array of convex hulls (one for each mass trace)
Definition: Feature.h:199
std::vector< Feature > subordinates_
subordinate features (e.g. features that represent alternative explanations, usually with lower quali...
Definition: Feature.h:208
An LC-MS feature.
Definition: Feature.h:70
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
structure that maps references of corresponding objects after copying
Definition: IdentificationData.h:210
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:202