35 #ifndef OPENMS_KERNEL_SPECTRUMHELPER_H 36 #define OPENMS_KERNEL_SPECTRUMHELPER_H 47 template <
class DataArrayT>
52 typename DataArrayT::iterator it = a.begin();
53 for (; it != a.end(); ++it)
55 if (it->getName() == name)
return it;
59 template <
class DataArrayT>
62 typename DataArrayT::const_iterator it = a.begin();
63 for (; it != a.end(); ++it)
65 if (it->getName() == name)
return it;
72 #endif // OPENMS_KERNEL_SPECTRUMHELPER_H A more convenient string class.
Definition: String.h:57
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
DataArrayT::iterator getDataArrayByName(DataArrayT &a, const String &name)
Helper functions for MSSpectrum and MSChromatogram.
Definition: SpectrumHelper.h:50