15 #include <OpenMS/OpenMSConfig.h>
102 bool encloses(
double rt,
double mz) const;
115 const std::vector<
Feature>& getSubordinates() const;
121 void setSubordinates(const std::vector<
Feature>& rhs);
135 template <typename Type>
136 Size applyMemberFunction(
Size (Type::* member_function)())
138 Size assignments = 0;
139 assignments += ((*this).*member_function)();
140 for (std::vector<Feature>::iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
148 template <
typename Type>
151 Size assignments = 0;
152 assignments += ((*this).*member_function)();
153 for (std::vector<Feature>::const_iterator iter = subordinates_.begin(); iter != subordinates_.end(); ++iter)
155 assignments += iter->applyMemberFunction(member_function);
176 mutable bool convex_hulls_modified_{};
A basic LC-MS feature.
Definition: BaseFeature.h:33
float QualityType
Definition: BaseFeature.h:38
Definition: ConvexHull2D.h:47
An LC-MS feature.
Definition: Feature.h:46
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:136
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:179
Feature()
Default constructor.
std::vector< ConvexHull2D > convex_hulls_
Array of convex hulls (one for each mass trace)
Definition: Feature.h:173
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: Feature.h:149
std::vector< Feature > subordinates_
subordinate features (e.g. features that represent alternative explanations, usually with lower quali...
Definition: Feature.h:182
Feature(Feature &&) noexcept
Move constructor.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Compare by quality.
Definition: BaseFeature.h:105
structure that maps references of corresponding objects after copying
Definition: IdentificationData.h:184