19 namespace IdentificationDataInternal
29 return steps_and_scores.
get<1>();
35 return steps_and_scores.
get<1>();
47 const std::map<ScoreTypeRef, double>& scores =
48 std::map<ScoreTypeRef, double>());
52 const std::optional<ProcessingStepRef>&
53 processing_step_opt = std::nullopt);
73 std::optional<ProcessingStepRef>
74 processing_step_opt)
const;
83 std::tuple<double, std::optional<ProcessingStepRef>,
bool>
93 std::tuple<double, std::optional<ScoreTypeRef>,
bool>
104 steps_and_scores(steps_and_scores)
OrderedView get()
Definition IDDataContainer.h:312
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition AppliedProcessingStep.h:27
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition MetaData.h:20
Base class for ID data with scores and processing steps (and meta info)
Definition ScoredProcessingResult.h:23
AppliedProcessingSteps::ConstOrderedView getStepsAndScoresByStep() const
Return the applied processing steps (incl. scores) as a set ordered by processing step reference (opt...
Definition ScoredProcessingResult.h:33
void addProcessingStep(const AppliedProcessingStep &step)
Add an applied processing step.
std::pair< double, bool > getScore(ScoreTypeRef score_ref, std::optional< ProcessingStepRef > processing_step_opt) const
Look up a score by score type and processing step.
AppliedProcessingSteps steps_and_scores
Definition ScoredProcessingResult.h:24
std::tuple< double, std::optional< ScoreTypeRef >, bool > getMostRecentScore() const
Get the (primary) score from the most recent processing step.
Size getNumberOfScores() const
Return the number of scores associated with this result.
std::tuple< double, std::optional< ProcessingStepRef >, bool > getScoreAndStep(ScoreTypeRef score_ref) const
Look up a score and associated processing step by score type.
ScoredProcessingResult(const AppliedProcessingSteps &steps_and_scores=AppliedProcessingSteps())
Constructor.
Definition ScoredProcessingResult.h:101
void addScore(ScoreTypeRef score_type, double score, const std::optional< ProcessingStepRef > &processing_step_opt=std::nullopt)
Add a score (possibly connected to a processing step)
ScoredProcessingResult & merge(const ScoredProcessingResult &other)
Merge in data from another object.
std::pair< double, bool > getScore(ScoreTypeRef score_ref) const
Look up a score by score type.
void addProcessingStep(ProcessingStepRef step_ref, const std::map< ScoreTypeRef, double > &scores=std::map< ScoreTypeRef, double >())
Add a processing step (and associated scores, if any)
ScoredProcessingResult(const ScoredProcessingResult &)=default
Copy c'tor.
AppliedProcessingSteps::OrderedView getStepsAndScoresByStep()
Return the applied processing steps (incl. scores) as a set ordered by processing step reference (opt...
Definition ScoredProcessingResult.h:27