67 private std::vector<Peak1D>,
74 struct OPENMS_DLLAPI
RTLess :
public std::binary_function<MSSpectrum, MSSpectrum, bool>
100 typedef typename ContainerType::iterator
Iterator;
112 using ContainerType::operator[];
113 using ContainerType::begin;
114 using ContainerType::rbegin;
115 using ContainerType::end;
116 using ContainerType::rend;
117 using ContainerType::resize;
118 using ContainerType::size;
119 using ContainerType::push_back;
120 using ContainerType::emplace_back;
121 using ContainerType::pop_back;
122 using ContainerType::empty;
123 using ContainerType::front;
124 using ContainerType::back;
125 using ContainerType::reserve;
126 using ContainerType::insert;
127 using ContainerType::erase;
128 using ContainerType::swap;
130 using typename ContainerType::iterator;
131 using typename ContainerType::const_iterator;
132 using typename ContainerType::size_type;
133 using typename ContainerType::value_type;
134 using typename ContainerType::reference;
135 using typename ContainerType::const_reference;
136 using typename ContainerType::pointer;
137 using typename ContainerType::difference_type;
167 void updateRanges()
override;
172 double getRT()
const;
175 void setRT(
double rt);
185 double getDriftTime()
const;
190 void setDriftTime(
double dt);
197 UInt getMSLevel()
const;
200 void setMSLevel(
UInt ms_level);
203 const String& getName()
const;
206 void setName(
const String& name);
223 const FloatDataArrays& getFloatDataArrays()
const;
229 return float_data_arrays_;
233 void setFloatDataArrays(
const FloatDataArrays& fda);
236 const StringDataArrays& getStringDataArrays()
const;
239 StringDataArrays& getStringDataArrays();
242 void setStringDataArrays(
const StringDataArrays& sda);
245 const IntegerDataArrays& getIntegerDataArrays()
const;
248 IntegerDataArrays& getIntegerDataArrays();
251 void setIntegerDataArrays(
const IntegerDataArrays& ida);
261 void sortByIntensity(
bool reverse =
false);
268 void sortByPosition();
271 bool isSorted()
const;
287 Size findNearest(CoordinateType mz)
const;
300 Int findNearest(CoordinateType mz, CoordinateType tolerance)
const;
315 Int findNearest(CoordinateType mz, CoordinateType tolerance_left, CoordinateType tolerance_right)
const;
322 Iterator MZBegin(CoordinateType mz);
329 Iterator MZBegin(Iterator begin, CoordinateType mz, Iterator end);
336 Iterator MZEnd(CoordinateType mz);
343 Iterator MZEnd(Iterator begin, CoordinateType mz, Iterator end);
350 ConstIterator MZBegin(CoordinateType mz)
const;
357 ConstIterator MZBegin(ConstIterator begin, CoordinateType mz, ConstIterator end)
const;
364 ConstIterator MZEnd(CoordinateType mz)
const;
371 ConstIterator MZEnd(ConstIterator begin, CoordinateType mz, ConstIterator end)
const;
380 Iterator PosBegin(CoordinateType mz);
389 Iterator PosBegin(Iterator begin, CoordinateType mz, Iterator end);
398 ConstIterator PosBegin(CoordinateType mz)
const;
407 ConstIterator PosBegin(ConstIterator begin, CoordinateType mz, ConstIterator end)
const;
416 Iterator PosEnd(CoordinateType mz);
425 Iterator PosEnd(Iterator begin, CoordinateType mz, Iterator end);
434 ConstIterator PosEnd(CoordinateType mz)
const;
443 ConstIterator PosEnd(ConstIterator begin, CoordinateType mz, ConstIterator end)
const;
453 void clear(
bool clear_meta_data);
462 MSSpectrum& select(
const std::vector<Size>& indices);
490 os <<
"-- MSSPECTRUM BEGIN --" << std::endl;
493 os << static_cast<const SpectrumSettings&>(spec);
498 os << *it << std::endl;
501 os <<
"-- MSSPECTRUM END --" << std::endl;
PeakType::CoordinateType CoordinateType
Coordinate (m/z) type.
Definition: MSSpectrum.h:84
A more convenient string class.
Definition: String.h:57
IntegerDataArrays integer_data_arrays_
Integer data arrays.
Definition: MSSpectrum.h:485
~MSSpectrum() override
Destructor.
Definition: MSSpectrum.h:148
StringDataArrays string_data_arrays_
String data arrays.
Definition: MSSpectrum.h:482
Comparator for the retention time.
Definition: MSSpectrum.h:74
ContainerType::reverse_iterator ReverseIterator
Mutable reverse iterator.
Definition: MSSpectrum.h:105
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Peak2D PeakType
Definition: MassTrace.h:47
ContainerType::const_iterator ConstIterator
Non-mutable iterator.
Definition: MSSpectrum.h:103
OpenMS::DataArrays::FloatDataArray FloatDataArray
Float data array vector type.
Definition: MSSpectrum.h:88
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Representation of 1D spectrum settings.
Definition: SpectrumSettings.h:63
String name_
Name.
Definition: MSSpectrum.h:476
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSSpectrum.h:101
std::vector< FloatDataArray > FloatDataArrays
Definition: MSSpectrum.h:89
Float data array class.
Definition: DataArrays.h:45
Integer data array class.
Definition: DataArrays.h:51
FloatDataArrays float_data_arrays_
Float data arrays.
Definition: MSSpectrum.h:479
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
bool operator!=(const MSSpectrum &rhs) const
Equality operator.
Definition: MSSpectrum.h:161
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
std::vector< StringDataArray > StringDataArrays
Definition: MSSpectrum.h:92
FloatDataArrays & getFloatDataArrays()
Returns a mutable reference to the float meta data arrays.
Definition: MSSpectrum.h:227
std::vector< PeakType > ContainerType
Spectrum base type.
Definition: MSSpectrum.h:86
OpenMS::DataArrays::StringDataArray StringDataArray
String data array vector type.
Definition: MSSpectrum.h:91
std::vector< IntegerDataArray > IntegerDataArrays
Definition: MSSpectrum.h:95
double retention_time_
Retention time.
Definition: MSSpectrum.h:467
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
UInt ms_level_
MS level.
Definition: MSSpectrum.h:473
OpenMS::DataArrays::IntegerDataArray IntegerDataArray
Integer data array vector type.
Definition: MSSpectrum.h:94
double drift_time_
Drift time.
Definition: MSSpectrum.h:470
String data array class.
Definition: DataArrays.h:57
Handles the management of a position and intensity range.
Definition: RangeManager.h:47
int Int
Signed integer type.
Definition: Types.h:102
ContainerType::const_reverse_iterator ConstReverseIterator
Non-mutable reverse iterator.
Definition: MSSpectrum.h:107