35 #ifndef OPENMS_INTERFACES_DATASTRUCTURES_H 36 #define OPENMS_INTERFACES_DATASTRUCTURES_H 40 #include <boost/shared_ptr.hpp> 42 #include <OpenMS/config.h> 72 struct OPENMS_DLLAPI BinaryDataArray
114 defaultArrayLength(2),
115 binaryDataArrayPtrs(defaultArrayLength)
124 for (std::size_t i = 0; i < defaultArrayLength; ++i)
126 BinaryDataArrayPtr empty(
new BinaryDataArray);
127 binaryDataArrayPtrs[i] = empty;
135 return binaryDataArrayPtrs[0];
141 binaryDataArrayPtrs[0] = data;
147 return binaryDataArrayPtrs[1];
153 binaryDataArrayPtrs[1] = data;
194 defaultArrayLength(2),
195 binaryDataArrayPtrs(defaultArrayLength)
204 for (std::size_t i = 0; i < defaultArrayLength; ++i)
206 BinaryDataArrayPtr empty(
new BinaryDataArray);
207 binaryDataArrayPtrs[i] = empty;
215 return binaryDataArrayPtrs[0];
221 binaryDataArrayPtrs[0] = data;
227 return binaryDataArrayPtrs[1];
233 binaryDataArrayPtrs[1] = data;
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:237
Spectrum()
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:193
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:157
boost::shared_ptr< BinaryDataArray > BinaryDataArrayPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:81
BinaryDataArrayPtr getMZArray() const
get m/z array (may be null)
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:213
BinaryDataArrayPtr getTimeArray() const
get time array (may be null)
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:133
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Chromatogram()
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:113
std::size_t defaultArrayLength
default length of binary data arrays contained in this element.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:186
A single chromatogram.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:103
void setIntensityArray(BinaryDataArrayPtr data)
set intensity array
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:231
BinaryDataArrayPtr getIntensityArray() const
get intensity array (may be null)
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:145
std::size_t defaultArrayLength
default length of binary data arrays contained in this element.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:106
The structure that captures the generation of a peak list (including the underlying acquisitions) ...
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:183
void setMZArray(BinaryDataArrayPtr data)
set mz array
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:219
std::vector< BinaryDataArrayPtr > binaryDataArrayPtrs
list of binary data arrays.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:190
void initvec()
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:202
boost::shared_ptr< ChromatogramMeta > ChromatogramMetaPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:100
boost::shared_ptr< SpectrumMeta > SpectrumMetaPtr
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:180
std::vector< BinaryDataArrayPtr > binaryDataArrayPtrs
list of binary data arrays.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:110
std::vector< double > data
this optional attribute may reference the 'id' attribute of the appropriate dataProcessing.
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:79
void setIntensityArray(BinaryDataArrayPtr data)
set intensity array
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:151
BinaryDataArrayPtr getIntensityArray() const
get intensity array (may be null)
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:225
void setTimeArray(BinaryDataArrayPtr data)
set time array
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:139
void initvec()
Definition: openms/include/OpenMS/INTERFACES/DataStructures.h:122