35 #ifndef OPENMS_KERNEL_MSCHROMATOGRAM_H 36 #define OPENMS_KERNEL_MSCHROMATOGRAM_H 48 class ChromatogramPeak;
56 private std::vector<ChromatogramPeak>,
65 public std::binary_function<MSChromatogram, MSChromatogram, bool>
91 typedef typename ContainerType::iterator
Iterator;
103 using ContainerType::operator[];
104 using ContainerType::begin;
105 using ContainerType::rbegin;
106 using ContainerType::end;
107 using ContainerType::rend;
108 using ContainerType::resize;
109 using ContainerType::size;
110 using ContainerType::push_back;
111 using ContainerType::pop_back;
112 using ContainerType::empty;
113 using ContainerType::front;
114 using ContainerType::back;
115 using ContainerType::reserve;
116 using ContainerType::insert;
117 using ContainerType::erase;
118 using ContainerType::swap;
120 using typename ContainerType::iterator;
121 using typename ContainerType::const_iterator;
122 using typename ContainerType::size_type;
123 using typename ContainerType::value_type;
124 using typename ContainerType::reference;
125 using typename ContainerType::const_reference;
126 using typename ContainerType::pointer;
127 using typename ContainerType::difference_type;
136 float_data_arrays_(),
137 string_data_arrays_(),
138 integer_data_arrays_()
143 ContainerType(source),
147 float_data_arrays_(source.float_data_arrays_),
148 string_data_arrays_(source.string_data_arrays_),
149 integer_data_arrays_(source.integer_data_arrays_)
172 updateRanges_(ContainerType::begin(), ContainerType::end());
178 const String& getName()
const;
181 void setName(
const String& name);
186 double getMZ()
const;
200 const FloatDataArrays& getFloatDataArrays()
const;
205 FloatDataArrays& getFloatDataArrays();
210 float_data_arrays_ = fda;
214 const StringDataArrays& getStringDataArrays()
const;
217 StringDataArrays& getStringDataArrays();
222 string_data_arrays_ = sda;
226 const IntegerDataArrays& getIntegerDataArrays()
const;
229 IntegerDataArrays& getIntegerDataArrays();
234 integer_data_arrays_ = ida;
246 void sortByIntensity(
bool reverse =
false);
254 void sortByPosition();
257 bool isSorted()
const;
273 Size findNearest(CoordinateType rt)
const;
281 Iterator RTBegin(CoordinateType rt);
289 Iterator RTBegin(Iterator begin, CoordinateType rt, Iterator end);
297 Iterator RTEnd(CoordinateType rt);
305 Iterator RTEnd(Iterator begin, CoordinateType rt, Iterator end);
313 ConstIterator RTBegin(CoordinateType rt)
const;
321 ConstIterator RTBegin(ConstIterator begin, CoordinateType rt, ConstIterator end)
const;
329 ConstIterator RTEnd(CoordinateType rt)
const;
331 ConstIterator MZEnd(CoordinateType rt)
const;
339 ConstIterator RTEnd(ConstIterator begin, CoordinateType rt, ConstIterator end)
const;
346 void clear(
bool clear_meta_data);
370 #endif // OPENMS_KERNEL_MSCHROMATOGRAM_H FloatDataArrays float_data_arrays_
Float data arrays.
Definition: MSChromatogram.h:356
bool operator!=(const MSChromatogram &rhs) const
Equality operator.
Definition: MSChromatogram.h:163
A more convenient string class.
Definition: String.h:57
std::vector< IntegerDataArray > IntegerDataArrays
Definition: MSChromatogram.h:86
The representation of a chromatogram.
Definition: MSChromatogram.h:55
ContainerType::iterator Iterator
Mutable iterator.
Definition: MSChromatogram.h:92
std::vector< PeakType > ContainerType
Chromatogram base type.
Definition: MSChromatogram.h:77
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
PeakType::CoordinateType CoordinateType
Coordinate (RT) type.
Definition: MSChromatogram.h:75
void setIntegerDataArrays(const IntegerDataArrays &ida)
Sets the integer meta data arrays.
Definition: MSChromatogram.h:232
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ContainerType::const_iterator ConstIterator
Non-mutable iterator.
Definition: MSChromatogram.h:94
virtual void updateRanges()
Updates minimum and maximum position/intensity.
Definition: MSChromatogram.h:169
OpenMS::DataArrays::IntegerDataArray IntegerDataArray
Integer data array vector type.
Definition: MSChromatogram.h:85
MSChromatogram()
Constructor.
Definition: MSChromatogram.h:131
Float data array class.
Definition: DataArrays.h:46
Integer data array class.
Definition: DataArrays.h:52
MSChromatogram(const MSChromatogram &source)
Copy constructor.
Definition: MSChromatogram.h:142
virtual ~MSChromatogram()
Destructor.
Definition: MSChromatogram.h:153
std::vector< StringDataArray > StringDataArrays
Definition: MSChromatogram.h:83
Comparator for the retention time.
Definition: MSChromatogram.h:64
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
std::vector< FloatDataArray > FloatDataArrays
Definition: MSChromatogram.h:80
OpenMS::DataArrays::StringDataArray StringDataArray
String data array vector type.
Definition: MSChromatogram.h:82
Representation of chromatogram settings, e.g. SRM/MRM chromatograms.
Definition: ChromatogramSettings.h:59
ChromatogramPeak PeakType
Definition: MSChromatogram.h:73
StringDataArrays string_data_arrays_
String data arrays.
Definition: MSChromatogram.h:359
ContainerType::reverse_iterator ReverseIterator
Mutable reverse iterator.
Definition: MSChromatogram.h:96
void setFloatDataArrays(const FloatDataArrays &fda)
Sets the float meta data arrays.
Definition: MSChromatogram.h:208
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
IntegerDataArrays integer_data_arrays_
Integer data arrays.
Definition: MSChromatogram.h:362
OpenMS::DataArrays::FloatDataArray FloatDataArray
Float data array vector type.
Definition: MSChromatogram.h:79
ContainerType::const_reverse_iterator ConstReverseIterator
Non-mutable reverse iterator.
Definition: MSChromatogram.h:98
String name_
Name.
Definition: MSChromatogram.h:353
A 1-dimensional raw data point or peak for chromatograms.
Definition: ChromatogramPeak.h:55
String data array class.
Definition: DataArrays.h:58
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
void setStringDataArrays(const StringDataArrays &sda)
Sets the string meta data arrays.
Definition: MSChromatogram.h:220