47 class ChromatogramPeak;
55 private std::vector<ChromatogramPeak>,
89 typedef typename ContainerType::iterator
Iterator;
101 using ContainerType::operator[];
102 using ContainerType::begin;
103 using ContainerType::rbegin;
104 using ContainerType::end;
105 using ContainerType::rend;
106 using ContainerType::resize;
107 using ContainerType::size;
108 using ContainerType::push_back;
109 using ContainerType::pop_back;
110 using ContainerType::empty;
111 using ContainerType::front;
112 using ContainerType::back;
113 using ContainerType::reserve;
114 using ContainerType::insert;
115 using ContainerType::erase;
116 using ContainerType::swap;
118 using typename ContainerType::iterator;
119 using typename ContainerType::const_iterator;
120 using typename ContainerType::size_type;
121 using typename ContainerType::value_type;
122 using typename ContainerType::reference;
123 using typename ContainerType::const_reference;
124 using typename ContainerType::pointer;
125 using typename ContainerType::difference_type;
160 updateRanges_(ContainerType::begin(), ContainerType::end());
198 float_data_arrays_ = fda;
210 string_data_arrays_ = sda;
222 integer_data_arrays_ = ida;
A 1-dimensional raw data point or peak for chromatograms.
Definition: ChromatogramPeak.h:54
double CoordinateType
Coordinate type.
Definition: ChromatogramPeak.h:67
Representation of chromatogram settings, e.g. SRM/MRM chromatograms.
Definition: ChromatogramSettings.h:61
Float data array class.
Definition: DataArrays.h:48
Integer data array class.
Definition: DataArrays.h:55
String data array class.
Definition: DataArrays.h:62
The representation of a chromatogram.
Definition: MSChromatogram.h:58
void setIntegerDataArrays(const IntegerDataArrays &ida)
Sets the integer meta data arrays.
Definition: MSChromatogram.h:220
Iterator PosBegin(CoordinateType rt)
Binary search for peak range begin.
FloatDataArrays & getFloatDataArrays()
Returns a mutable reference to the float meta data arrays.
MSChromatogram(MSChromatogram &&)=default
Move constructor.
PeakType::CoordinateType CoordinateType
Coordinate (RT) type.
Definition: MSChromatogram.h:73
ConstIterator RTBegin(CoordinateType rt) const
Binary search for peak range begin.
std::vector< StringDataArray > StringDataArrays
Definition: MSChromatogram.h:81
OpenMS::DataArrays::FloatDataArray FloatDataArray
Float data array vector type.
Definition: MSChromatogram.h:77
ConstIterator RTEnd(ConstIterator begin, CoordinateType rt, ConstIterator end) const
Binary search for peak range end (returns the past-the-end iterator)
MSChromatogram(const MSChromatogram &)=default
Copy constructor.
ChromatogramPeak PeakType
Definition: MSChromatogram.h:71
MSChromatogram & operator=(const MSChromatogram &source)
Assignment operator.
String name_
Name.
Definition: MSChromatogram.h:435
ContainerType::const_iterator ConstIterator
Non-mutable iterator.
Definition: MSChromatogram.h:92
ConstIterator RTEnd(CoordinateType rt) const
Binary search for peak range end (returns the past-the-end iterator)
StringDataArrays & getStringDataArrays()
Returns a mutable reference to the string meta data arrays.
ContainerType::reverse_iterator ReverseIterator
Mutable reverse iterator.
Definition: MSChromatogram.h:94
Iterator RTEnd(Iterator begin, CoordinateType rt, Iterator end)
Binary search for peak range end (returns the past-the-end iterator)
Iterator RTEnd(CoordinateType rt)
Binary search for peak range end (returns the past-the-end iterator)
std::vector< PeakType > ContainerType
Chromatogram base type.
Definition: MSChromatogram.h:75
ContainerType::const_reverse_iterator ConstReverseIterator
Non-mutable reverse iterator.
Definition: MSChromatogram.h:96
void mergePeaks(MSChromatogram &other, bool add_meta=false)
Adds all the chromatogram peaks from another MSChromatogram and updates the metadata to indicate a me...
bool isSorted() const
Checks if all peaks are sorted with respect to ascending RT.
MSChromatogram()=default
Constructor.
Iterator PosBegin(Iterator begin, CoordinateType rt, Iterator end)
Binary search for peak range begin.
bool operator!=(const MSChromatogram &rhs) const
Equality operator.
Definition: MSChromatogram.h:151
void setName(const String &name)
Sets the name.
void sortByPosition()
Lexicographically sorts the peaks by their position.
StringDataArrays string_data_arrays_
String data arrays.
Definition: MSChromatogram.h:441
ConstIterator PosBegin(ConstIterator begin, CoordinateType rt, ConstIterator end) const
Binary search for peak range begin.
void sortByIntensity(bool reverse=false)
Lexicographically sorts the peaks by their intensity.
const IntegerDataArrays & getIntegerDataArrays() const
Returns a const reference to the integer meta data arrays.
ConstIterator PosEnd(ConstIterator begin, CoordinateType rt, ConstIterator end) const
Binary search for peak range end (returns the past-the-end iterator)
IntegerDataArrays integer_data_arrays_
Integer data arrays.
Definition: MSChromatogram.h:444
Size findNearest(CoordinateType rt) const
Binary search for the peak nearest to a specific RT.
OpenMS::DataArrays::StringDataArray StringDataArray
String data array vector type.
Definition: MSChromatogram.h:80
ConstIterator PosBegin(CoordinateType rt) const
Binary search for peak range begin.
MSChromatogram & operator=(MSChromatogram &&) &=default
Move assignment operator.
Iterator RTBegin(CoordinateType rt)
Binary search for peak range begin.
Iterator PosEnd(Iterator begin, CoordinateType rt, Iterator end)
Binary search for peak range end (returns the past-the-end iterator)
bool operator==(const MSChromatogram &rhs) const
Equality operator.
ConstIterator PosEnd(CoordinateType rt) const
Binary search for peak range end (returns the past-the-end iterator)
const String & getName() const
FloatDataArrays float_data_arrays_
Float data arrays.
Definition: MSChromatogram.h:438
~MSChromatogram() override
Destructor.
Definition: MSChromatogram.h:138
const FloatDataArrays & getFloatDataArrays() const
void setStringDataArrays(const StringDataArrays &sda)
Sets the string meta data arrays.
Definition: MSChromatogram.h:208
ConstIterator RTBegin(ConstIterator begin, CoordinateType rt, ConstIterator end) const
Binary search for peak range begin.
Iterator PosEnd(CoordinateType rt)
Binary search for peak range end (returns the past-the-end iterator)
const StringDataArrays & getStringDataArrays() const
Returns a const reference to the string meta data arrays.
std::vector< FloatDataArray > FloatDataArrays
Definition: MSChromatogram.h:78
void updateRanges() override
Updates minimum and maximum position/intensity.
Definition: MSChromatogram.h:157
OpenMS::DataArrays::IntegerDataArray IntegerDataArray
Integer data array vector type.
Definition: MSChromatogram.h:83
void clear(bool clear_meta_data)
Clears all data and meta data.
std::vector< IntegerDataArray > IntegerDataArrays
Definition: MSChromatogram.h:84
IntegerDataArrays & getIntegerDataArrays()
Returns a mutable reference to the integer meta data arrays.
void setFloatDataArrays(const FloatDataArrays &fda)
Sets the float meta data arrays.
Definition: MSChromatogram.h:196
Iterator RTBegin(Iterator begin, CoordinateType rt, Iterator end)
Binary search for peak range begin.
double getMZ() const
returns the mz of the product entry, makes sense especially for MRM scans
ConstIterator MZEnd(CoordinateType rt) const
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
A more convenient string class.
Definition: String.h:61
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Comparator for the retention time.
Definition: MSChromatogram.h:64
bool operator()(const MSChromatogram &a, const MSChromatogram &b) const