OpenMS
Loading...
Searching...
No Matches
AppliedProcessingStep.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: Hendrik Weisser $
6// $Authors: Hendrik Weisser $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
15
16
17#include <optional>
18
19namespace OpenMS
20{
21 namespace IdentificationDataInternal
22 {
26 struct OPENMS_DLLAPI AppliedProcessingStep
27 {
33 std::optional<ProcessingStepRef> processing_step_opt;
34
36 std::map<ScoreTypeRef, double> scores;
37
40 const std::optional<ProcessingStepRef>& processing_step_opt =
41 std::nullopt, const std::map<ScoreTypeRef, double>& scores =
42 std::map<ScoreTypeRef, double>()):
43 processing_step_opt(processing_step_opt), scores(scores)
44 {
45 }
46
48 bool operator==(const AppliedProcessingStep& other) const;
49
58 std::vector<std::pair<ScoreTypeRef, double>>
59 getScoresInOrder(bool primary_only = false) const;
60 };
61
62 // we want to keep track of the processing steps in sequence (order of
63 // application), but also ensure there are no duplicate steps:
65 }
66}
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::map< ScoreTypeRef, double > scores
Map of scores and their types.
Definition AppliedProcessingStep.h:36
bool operator==(const AppliedProcessingStep &other) const
Equality operator (needed for multi-index container)
std::optional< ProcessingStepRef > processing_step_opt
(Optional) reference to the processing step
Definition AppliedProcessingStep.h:33
std::vector< std::pair< ScoreTypeRef, double > > getScoresInOrder(bool primary_only=false) const
Return scores in order of priority (primary first).
AppliedProcessingStep(const std::optional< ProcessingStepRef > &processing_step_opt=std::nullopt, const std::map< ScoreTypeRef, double > &scores=std::map< ScoreTypeRef, double >())
Constructor.
Definition AppliedProcessingStep.h:39