OpenMS
SpectrumAccessTransforming.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h>
13 
14 namespace OpenMS
15 {
16 
21  class OPENMS_DLLAPI SpectrumAccessTransforming :
23  {
24 public:
25 
27 
29 
30  boost::shared_ptr<ISpectrumAccess> lightClone() const override = 0;
31 
33 
35 
36  std::vector<std::size_t> getSpectraByRT(double RT, double deltaRT) const override;
37 
38  size_t getNrSpectra() const override;
39 
41 
42  size_t getNrChromatograms() const override;
43 
44  std::string getChromatogramNativeID(int id) const override;
45 
46 protected:
48 
49  };
50 
51 }
52 
53 
An abstract base class implementing a transforming wrapper around spectrum access.
Definition: SpectrumAccessTransforming.h:23
size_t getNrSpectra() const override
Returns the number of spectra available.
std::vector< std::size_t > getSpectraByRT(double RT, double deltaRT) const override
Return a vector of ids of spectra that are within RT +/- deltaRT.
size_t getNrChromatograms() const override
Returns the number of chromatograms available.
OpenSwath::ChromatogramPtr getChromatogramById(int id) override
Return a pointer to a chromatogram at the given id.
OpenSwath::SpectrumPtr getSpectrumById(int id) override
Return a pointer to a spectrum at the given id.
std::string getChromatogramNativeID(int id) const override
Returns the native id of the chromatogram at the given id.
SpectrumAccessTransforming(OpenSwath::SpectrumAccessPtr sptr)
boost::shared_ptr< ISpectrumAccess > lightClone() const override=0
Light clone operator to produce a copy for concurrent read access.
OpenSwath::SpectrumMeta getSpectrumMetaById(int id) const override
Returns the meta information for a spectrum.
OpenSwath::SpectrumAccessPtr sptr_
Definition: SpectrumAccessTransforming.h:47
The interface of a mass spectrometry experiment.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:25
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
boost::shared_ptr< Chromatogram > ChromatogramPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:146
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:270
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:61
Identifying information for a spectrum.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:150