OpenMS
FeatureFinderDefs.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: $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
15 
16 namespace OpenMS
17 {
19  struct OPENMS_DLLAPI FeatureFinderDefs
20  {
23 
26 
29 
31  enum Flag {UNUSED, USED};
32 
34  class OPENMS_DLLAPI NoSuccessor :
36  {
37 public:
38  NoSuccessor(const char * file, int line, const char * function, const IndexPair & index) :
39  BaseException(file, line, function, "NoSuccessor", String("there is no successor/predecessor for the given Index: ") + String(index.first) + "/" + String(index.second)),
40  index_(index)
41  {
43  }
44 
45  ~NoSuccessor() noexcept override = default;
46 
47 protected:
48  IndexPair index_; // index without successor/predecessor
49  };
50  };
51 }
Exception base class.
Definition: Exception.h:63
static void setMessage(const std::string &message)
~NoSuccessor() noexcept override=default
NoSuccessor(const char *file, int line, const char *function, const IndexPair &index)
Definition: FeatureFinderDefs.h:38
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Flag
Flags that indicate if a peak is already used in a feature.
Definition: FeatureFinderAlgorithmPicked.h:36
IsotopeCluster::IndexPair IndexPair
Index to peak consisting of two UInts (scan index / peak index)
Definition: FeatureFinderDefs.h:22
IsotopeCluster::ChargedIndexSet ChargedIndexSet
Index to peak consisting of two UInts (scan index / peak index) with charge information.
Definition: FeatureFinderDefs.h:25
IsotopeCluster::IndexSet IndexSet
A set of peak indices.
Definition: FeatureFinderDefs.h:28
index set with associated charge estimate
Definition: IsotopeCluster.h:28
std::pair< Size, Size > IndexPair
An index e.g. in an MSExperiment.
Definition: IsotopeCluster.h:21
std::set< IndexPair > IndexSet
A set of index pairs, usually referring to an MSExperiment.
Definition: IsotopeCluster.h:23