OpenMS
Product.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: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
22  class OPENMS_DLLAPI Product :
23  public CVTermList
24  {
25 
26 public:
27 
29  Product() = default;
31  Product(const Product &) = default;
33  Product(Product&&) = default;
35  ~Product() override = default;
36 
38  Product & operator=(const Product &) = default;
40  Product& operator=(Product&&) & = default;
41 
43  bool operator==(const Product & rhs) const;
45  bool operator!=(const Product & rhs) const;
46 
48  double getMZ() const;
50  void setMZ(double mz);
51 
55  void setIsolationWindowLowerOffset(double bound);
56 
60  void setIsolationWindowUpperOffset(double bound);
61 
62 protected:
63 
64  double mz_ = 0.0;
65  double window_low_ = 0.0;
66  double window_up_ = 0.0;
67  };
68 } // namespace OpenMS
69 
Representation of controlled vocabulary term list.
Definition: CVTermList.h:28
Product meta information.
Definition: Product.h:24
double getIsolationWindowLowerOffset() const
returns the lower offset from the target m/z
Product(const Product &)=default
Copy constructor.
Product(Product &&)=default
Move constructor.
void setIsolationWindowUpperOffset(double bound)
sets the upper offset from the target m/z
bool operator!=(const Product &rhs) const
Equality operator.
Product & operator=(Product &&) &=default
Move assignment operator.
void setMZ(double mz)
sets the target m/z
double getIsolationWindowUpperOffset() const
returns the upper offset from the target m/z
~Product() override=default
Destructor.
Product()=default
Constructor.
void setIsolationWindowLowerOffset(double bound)
sets the lower offset from the target m/z
bool operator==(const Product &rhs) const
Equality operator.
Product & operator=(const Product &)=default
Assignment operator.
double getMZ() const
returns the target m/z
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19