41 #include <OpenMS/OpenMSConfig.h>
113 const std::vector<
ConvexHull2D>& getConvexHulls() const;
128 bool encloses(
double rt,
double mz) const;
141 const std::vector<
Feature>& getSubordinates() const;
147 void setSubordinates(const std::vector<
Feature>& rhs);
161 template <typename Type>
162 Size applyMemberFunction(
Size (Type::* member_function)())
164 Size assignments = 0;
165 assignments += ((*this).*member_function)();
166 for (std::vector<Feature>::iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
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);
A basic LC-MS feature.
Definition: BaseFeature.h:59
float QualityType
Definition: BaseFeature.h:64
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:73
An LC-MS feature.
Definition: Feature.h:72
Feature(const BaseFeature &base)
explicit C'tor from BaseFeature
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
Feature(const Feature &feature)
Copy constructor.
void updateAllIDReferences(const IdentificationData::RefTranslator &trans)
Update ID references (primary ID, input matches) for this feature and any subfeatures.
ConvexHull2D convex_hull_
Overall convex hull of the feature.
Definition: Feature.h:205
Feature()
Default constructor.
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
std::vector< ConvexHull2D > convex_hulls_
Array of convex hulls (one for each mass trace)
Definition: Feature.h:199
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: Feature.h:175
std::vector< Feature > subordinates_
subordinate features (e.g. features that represent alternative explanations, usually with lower quali...
Definition: Feature.h:208
Feature(Feature &&) noexcept
Move constructor.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Compare by quality.
Definition: BaseFeature.h:131
structure that maps references of corresponding objects after copying
Definition: IdentificationData.h:192