OpenMS
Loading...
Searching...
No Matches
FeatureFinderDefs.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: Timo Sachsenberg $
6// $Authors: $
7// --------------------------------------------------------------------------
8
9#pragma once
10
15
16namespace OpenMS
17{
19 struct OPENMS_DLLAPI FeatureFinderDefs
20 {
23
26
29
31 enum Flag {UNUSED, USED};
32
34 class OPENMS_DLLAPI NoSuccessor :
36 {
37public:
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 {
42 Exception::GlobalExceptionHandler::setMessage(what());
43 }
44
45 ~NoSuccessor() noexcept override = default;
46
47protected:
48 IndexPair index_; // index without successor/predecessor
49 };
50 };
51}
subpage TOPP_TargetedFileConverter Converts targeted feature or consensus feature files subpage TOPP_FileInfo Shows basic information about the file
Definition TOPP.doxygen:44
Exception base class.
Definition Exception.h:63
~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:56
std::pair< Size, Size > IndexPair
An index pair typically representing (scan_index, peak_index) in an MSExperiment.
Definition IsotopeCluster.h:37
std::set< IndexPair > IndexSet
A set of index pairs, usually referring to peaks in an MSExperiment.
Definition IsotopeCluster.h:45