41 #include <boost/multi_index_container.hpp>
42 #include <boost/multi_index/ordered_index.hpp>
43 #include <boost/multi_index/composite_key.hpp>
44 #include <boost/multi_index/member.hpp>
48 namespace IdentificationDataInternal
67 double rt = std::numeric_limits<double>::quiet_NaN(),
68 double mz = std::numeric_limits<double>::quiet_NaN()):
85 typedef boost::multi_index_container<
87 boost::multi_index::indexed_by<
88 boost::multi_index::ordered_unique<
89 boost::multi_index::composite_key<
93 boost::multi_index::member<Observation,
String,
A more convenient string class.
Definition: String.h:60
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:95
IteratorWrapper< Observations::iterator > ObservationRef
Definition: Observation.h:96
IteratorWrapper< InputFiles::iterator > InputFileRef
Definition: include/OpenMS/METADATA/ID/InputFile.h:95
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Representation of an observation, e.g. a spectrum or feature, in an input data file.
Definition: Observation.h:54
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:64
double mz
Definition: Observation.h:61
InputFileRef input_file
Reference to the input file.
Definition: Observation.h:59
String data_id
Spectrum or feature ID (from the file referenced by @t input_file)
Definition: Observation.h:56
double rt
Definition: Observation.h:61
Observation & merge(const Observation &other)
Merge in data from another object.
Definition: Observation.h:74