OpenMS
ITransition.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, 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 <vector>
12 #include <string>
13 #include <boost/shared_ptr.hpp>
14 
15 #include <OpenMS/OPENSWATHALGO/OpenSwathAlgoConfig.h>
16 
17 namespace OpenSwath
18 {
19  // Datastructures for Scoring
20  class OPENSWATHALGO_DLLAPI IFeature
21  {
22 public:
23  virtual ~IFeature(){}
24  virtual void getRT(std::vector<double>& rt) const = 0;
25  virtual void getIntensity(std::vector<double>& intens) const = 0;
26  virtual float getIntensity() const = 0;
27  virtual double getRT() const = 0;
28  };
29 
30  class OPENSWATHALGO_DLLAPI IMRMFeature
31  {
32 public:
33  virtual ~IMRMFeature(){}
34  virtual boost::shared_ptr<OpenSwath::IFeature> getFeature(std::string nativeID) = 0;
35  virtual boost::shared_ptr<OpenSwath::IFeature> getPrecursorFeature(std::string nativeID) = 0;
36  virtual std::vector<std::string> getNativeIDs() const = 0;
37  virtual std::vector<std::string> getPrecursorIDs() const = 0;
38  virtual float getIntensity() const = 0;
39  virtual double getRT() const = 0;
40  virtual size_t size() const = 0;
41  };
42 
43  struct OPENSWATHALGO_DLLAPI ITransitionGroup
44  {
45  virtual ~ITransitionGroup() {}
46  virtual std::size_t size() const = 0;
47  virtual std::vector<std::string> getNativeIDs() const = 0;
48  virtual void getLibraryIntensities(std::vector<double>& intensities) const = 0;
49  };
50 
51  struct OPENSWATHALGO_DLLAPI ISignalToNoise
52  {
53  virtual ~ISignalToNoise() {}
54  virtual double getValueAtRT(double RT) = 0; // cannot be const due to OpenMS implementation
55  };
56  typedef boost::shared_ptr<ISignalToNoise> ISignalToNoisePtr;
57 
58 
59 } //end Namespace OpenSwath
60 
Definition: ITransition.h:21
virtual double getRT() const =0
virtual ~IFeature()
Definition: ITransition.h:23
virtual float getIntensity() const =0
virtual void getRT(std::vector< double > &rt) const =0
virtual void getIntensity(std::vector< double > &intens) const =0
Definition: ITransition.h:31
virtual double getRT() const =0
virtual boost::shared_ptr< OpenSwath::IFeature > getPrecursorFeature(std::string nativeID)=0
virtual std::vector< std::string > getPrecursorIDs() const =0
virtual ~IMRMFeature()
Definition: ITransition.h:33
virtual float getIntensity() const =0
virtual boost::shared_ptr< OpenSwath::IFeature > getFeature(std::string nativeID)=0
virtual std::vector< std::string > getNativeIDs() const =0
virtual size_t size() const =0
Definition: Scoring.h:18
boost::shared_ptr< ISignalToNoise > ISignalToNoisePtr
Definition: ITransition.h:56
Definition: ITransition.h:52
virtual double getValueAtRT(double RT)=0
virtual ~ISignalToNoise()
Definition: ITransition.h:53
Definition: ITransition.h:44
virtual ~ITransitionGroup()
Definition: ITransition.h:45
virtual std::size_t size() const =0
virtual std::vector< std::string > getNativeIDs() const =0
virtual void getLibraryIntensities(std::vector< double > &intensities) const =0