OpenMS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ITransition.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- 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 double getMetaValue(std::string name) const = 0;
41  virtual size_t size() const = 0;
42  };
43 
44  struct OPENSWATHALGO_DLLAPI ITransitionGroup
45  {
46  virtual ~ITransitionGroup() {}
47  virtual std::size_t size() const = 0;
48  virtual std::vector<std::string> getNativeIDs() const = 0;
49  virtual void getLibraryIntensities(std::vector<double>& intensities) const = 0;
50  };
51 
52  struct OPENSWATHALGO_DLLAPI ISignalToNoise
53  {
54  virtual ~ISignalToNoise() {}
55  virtual double getValueAtRT(double RT) = 0; // cannot be const due to OpenMS implementation
56  };
57  typedef boost::shared_ptr<ISignalToNoise> ISignalToNoisePtr;
58 
59 
60 } //end Namespace OpenSwath
61 
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 double getMetaValue(std::string name) const =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:57
Definition: ITransition.h:53
virtual double getValueAtRT(double RT)=0
virtual ~ISignalToNoise()
Definition: ITransition.h:54
Definition: ITransition.h:45
virtual ~ITransitionGroup()
Definition: ITransition.h:46
virtual std::size_t size() const =0
virtual std::vector< std::string > getNativeIDs() const =0
virtual void getLibraryIntensities(std::vector< double > &intensities) const =0