15 #include <boost/multi_index_container.hpp>
16 #include <boost/multi_index/ordered_index.hpp>
17 #include <boost/multi_index/composite_key.hpp>
18 #include <boost/multi_index/member.hpp>
22 namespace IdentificationDataInternal
41 double rt = std::numeric_limits<double>::quiet_NaN(),
42 double mz = std::numeric_limits<double>::quiet_NaN()):
59 typedef boost::multi_index_container<
61 boost::multi_index::indexed_by<
62 boost::multi_index::ordered_unique<
63 boost::multi_index::composite_key<
67 boost::multi_index::member<Observation,
String,
A more convenient string class.
Definition: String.h:34
boost::multi_index_container< Observation, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::composite_key< Observation, boost::multi_index::member< Observation, InputFileRef, &Observation::input_file >, boost::multi_index::member< Observation, String, &Observation::data_id > > > > > Observations
Definition: Observation.h:69
IteratorWrapper< Observations::iterator > ObservationRef
Definition: Observation.h:70
IteratorWrapper< InputFiles::iterator > InputFileRef
Definition: include/OpenMS/METADATA/ID/InputFile.h:69
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Representation of an observation, e.g. a spectrum or feature, in an input data file.
Definition: Observation.h:28
Observation(const String &data_id, const InputFileRef &input_file, double rt=std::numeric_limits< double >::quiet_NaN(), double mz=std::numeric_limits< double >::quiet_NaN())
Constructor.
Definition: Observation.h:38
double mz
Definition: Observation.h:35
InputFileRef input_file
Reference to the input file.
Definition: Observation.h:33
String data_id
Spectrum or feature ID (from the file referenced by @t input_file)
Definition: Observation.h:30
double rt
Definition: Observation.h:35
Observation & merge(const Observation &other)
Merge in data from another object.
Definition: Observation.h:48