21 namespace IdentificationDataInternal
36 std::map<ScoreTypeRef, double>
scores;
41 std::nullopt,
const std::map<ScoreTypeRef, double>&
scores =
42 std::map<ScoreTypeRef, double>()):
62 std::vector<std::pair<ScoreTypeRef, double>>
65 std::vector<std::pair<ScoreTypeRef, double>> result;
66 std::set<ScoreTypeRef> scores_done;
73 auto pos =
scores.find(score_ref);
76 result.push_back(*pos);
77 if (primary_only)
return result;
78 scores_done.insert(score_ref);
82 for (
const auto& pair:
scores)
84 if (!scores_done.contains(pair.first))
86 result.push_back(pair);
87 if (primary_only)
return result;
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition AppliedProcessingStep.h:27
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)
Definition AppliedProcessingStep.h:48
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).
Definition AppliedProcessingStep.h:63
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