OpenMS
|
#include <OpenMS/METADATA/ID/AppliedProcessingStep.h>
Public Member Functions | |
AppliedProcessingStep (const std::optional< ProcessingStepRef > &processing_step_opt=std::nullopt, const std::map< ScoreTypeRef, double > &scores=std::map< ScoreTypeRef, double >()) | |
Constructor. More... | |
bool | operator== (const AppliedProcessingStep &other) const |
Equality operator (needed for multi-index container) More... | |
std::vector< std::pair< ScoreTypeRef, double > > | getScoresInOrder (bool primary_only=false) const |
Return scores in order of priority (primary first). More... | |
Public Attributes | |
std::optional< ProcessingStepRef > | processing_step_opt |
(Optional) reference to the processing step More... | |
std::map< ScoreTypeRef, double > | scores |
Map of scores and their types. More... | |
A processing step that was applied to a data item, possibly with associated scores.
|
inlineexplicit |
Constructor.
|
inline |
Return scores in order of priority (primary first).
The order is defined in the ProcessingSoftware
referenced by the processing step (if available). Scores not listed there are included at the end of the output.
primary_only | Only return the primary score (ignoring any others)? |
References AppliedProcessingStep::processing_step_opt, and AppliedProcessingStep::scores.
|
inline |
Equality operator (needed for multi-index container)
References AppliedProcessingStep::processing_step_opt, and AppliedProcessingStep::scores.
std::optional<ProcessingStepRef> processing_step_opt |
(Optional) reference to the processing step
If there are only scores, the processing step may be missing.
Referenced by ScoredProcessingResult::addProcessingStep(), AppliedProcessingStep::getScoresInOrder(), and AppliedProcessingStep::operator==().
std::map<ScoreTypeRef, double> scores |
Map of scores and their types.
Referenced by ScoredProcessingResult::addProcessingStep(), ScoredProcessingResult::addScore(), AppliedProcessingStep::getScoresInOrder(), and AppliedProcessingStep::operator==().