OpenMS  2.7.0
Public Member Functions | Public Attributes | List of all members
AppliedProcessingStep Struct Reference

A processing step that was applied to a data item, possibly with associated scores. More...

#include <OpenMS/METADATA/ID/AppliedProcessingStep.h>

Collaboration diagram for AppliedProcessingStep:
[legend]

Public Member Functions

 AppliedProcessingStep (const boost::optional< ProcessingStepRef > &processing_step_opt=boost::none, const std::map< ScoreTypeRef, double > &scores=std::map< ScoreTypeRef, double >())
 
bool operator== (const AppliedProcessingStep &other) const
 
std::vector< std::pair< ScoreTypeRef, double > > getScoresInOrder () const
 Return scores in order of priority (primary first). More...
 

Public Attributes

boost::optional< ProcessingStepRefprocessing_step_opt
 
std::map< ScoreTypeRef, double > scores
 

Detailed Description

A processing step that was applied to a data item, possibly with associated scores.

Constructor & Destructor Documentation

◆ AppliedProcessingStep()

AppliedProcessingStep ( const boost::optional< ProcessingStepRef > &  processing_step_opt = boost::none,
const std::map< ScoreTypeRef, double > &  scores = std::map<ScoreTypeRef, double>() 
)
inlineexplicit

Member Function Documentation

◆ getScoresInOrder()

std::vector<std::pair<ScoreTypeRef, double> > getScoresInOrder ( ) const
inline

Return scores in order of priority (primary first).

The order is defined in the DataProcessingSoftware referenced by the processing step (if available). Scores not listed there are included at the end of the output.

References AppliedProcessingStep::processing_step_opt, and AppliedProcessingStep::scores.

◆ operator==()

bool operator== ( const AppliedProcessingStep other) const
inline

Member Data Documentation

◆ processing_step_opt

boost::optional<ProcessingStepRef> processing_step_opt

◆ scores

std::map<ScoreTypeRef, double> scores