35 #ifndef OPENMS_KERNEL_FEATUREMAP_H 36 #define OPENMS_KERNEL_FEATUREMAP_H 46 #include <OpenMS/OpenMSConfig.h> 54 class ProteinIdentification;
55 class PeptideIdentification;
94 private std::vector<Feature>,
107 using privvec::value_type;
108 using privvec::iterator;
109 using privvec::const_iterator;
110 using privvec::size_type;
111 using privvec::pointer;
112 using privvec::reference;
113 using privvec::const_reference;
114 using privvec::difference_type;
117 using privvec::begin;
121 using privvec::resize;
122 using privvec::empty;
123 using privvec::reserve;
124 using privvec::operator[];
128 using privvec::push_back;
129 using privvec::pop_back;
130 using privvec::erase;
135 typedef std::vector<FeatureType>
Base;
163 OPENMS_DLLAPI
bool operator==(
const FeatureMap& rhs)
const;
166 OPENMS_DLLAPI
bool operator!=(
const FeatureMap& rhs)
const;
195 OPENMS_DLLAPI
void sortByIntensity(
bool reverse =
false);
199 OPENMS_DLLAPI
void sortByPosition();
202 OPENMS_DLLAPI
void sortByRT();
205 OPENMS_DLLAPI
void sortByMZ();
208 OPENMS_DLLAPI
void sortByOverallQuality(
bool reverse =
false);
213 OPENMS_DLLAPI
void updateRanges();
216 OPENMS_DLLAPI
void swapFeaturesOnly(
FeatureMap& from);
221 OPENMS_DLLAPI
const std::vector<ProteinIdentification>& getProteinIdentifications()
const;
224 OPENMS_DLLAPI std::vector<ProteinIdentification>& getProteinIdentifications();
227 OPENMS_DLLAPI
void setProteinIdentifications(
const std::vector<ProteinIdentification>& protein_identifications);
230 OPENMS_DLLAPI
const std::vector<PeptideIdentification>& getUnassignedPeptideIdentifications()
const;
233 OPENMS_DLLAPI std::vector<PeptideIdentification>& getUnassignedPeptideIdentifications();
236 OPENMS_DLLAPI
void setUnassignedPeptideIdentifications(
const std::vector<PeptideIdentification>& unassigned_peptide_identifications);
239 OPENMS_DLLAPI
const std::vector<DataProcessing>& getDataProcessing()
const;
242 OPENMS_DLLAPI std::vector<DataProcessing>& getDataProcessing();
245 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
252 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
266 template <
typename Type>
269 Size assignments = 0;
270 assignments += ((*this).*member_function)();
271 for (Iterator iter = this->begin(); iter != this->end(); ++iter)
273 assignments += iter->applyMemberFunction(member_function);
279 template <
typename Type>
282 Size assignments = 0;
283 assignments += ((*this).*member_function)();
284 for (ConstIterator iter = this->begin(); iter != this->end(); ++iter)
286 assignments += iter->applyMemberFunction(member_function);
309 #endif // OPENMS_KERNEL_DFEATUREMAP_H Base::const_iterator ConstIterator
Definition: FeatureMap.h:137
std::vector< Size > states
Definition: FeatureMap.h:62
A container for features.
Definition: FeatureMap.h:93
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:138
FeatureType & Reference
Definition: FeatureMap.h:140
Feature FeatureType
Definition: FeatureMap.h:133
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)...
Definition: FeatureMap.h:267
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Base::const_reverse_iterator ConstReverseIterator
Definition: FeatureMap.h:139
const FeatureType & ConstReference
Definition: FeatureMap.h:141
RangeManager< 2 > RangeManagerType
Definition: FeatureMap.h:134
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: FeatureMap.h:296
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
A base class for random access containers for classes derived from UniqueIdInterface that adds functi...
Definition: UniqueIdIndexer.h:64
Base::iterator Iterator
Definition: FeatureMap.h:136
An LC-MS feature.
Definition: Feature.h:70
std::vector< Feature > privvec
Definition: FeatureMap.h:104
std::vector< PeptideIdentification > unassigned_peptide_identifications_
peptide identifications not matched to a specific feature
Definition: FeatureMap.h:299
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:52
std::vector< FeatureType > Base
Definition: FeatureMap.h:135
std::vector< DataProcessing > data_processing_
applied data processing
Definition: FeatureMap.h:302
AnnotationState
state of identification, use getIDState() to query it
Definition: BaseFeature.h:70
Definition: FeatureMap.h:60
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:280
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
Manage source document information.
Definition: DocumentIdentifier.h:56