|  | OpenMS
    2.6.0
    | 
 
 
  
  
 
Go to the documentation of this file.
   41   namespace IdentificationDataInternal
 
   55       const AppliedProcessingSteps::nth_index<1>::type&
 
   79               for (
const auto& pair : step.
scores)
 
   81                 old_step.
scores[pair.first] = pair.second;
 
   89                              const std::map<ScoreTypeRef, double>& scores =
 
   90                              std::map<ScoreTypeRef, double>())
 
   98                     const boost::optional<ProcessingStepRef>&
 
   99                     processing_step_opt = boost::none)
 
  102         applied.
scores[score_type] = score;
 
  115         std::vector<UInt> keys;
 
  117         for (
const UInt key : keys)
 
  134         std::tuple<double, boost::optional<ProcessingStepRef>, 
bool> result =
 
  136         return std::make_pair(std::get<0>(result), std::get<2>(result));
 
  145                                        boost::optional<ProcessingStepRef>
 
  146                                        processing_step_opt)
 const 
  151           auto score_pos = step_pos->scores.find(score_ref);
 
  152           if (score_pos != step_pos->scores.end())
 
  154             return std::make_pair(score_pos->second, 
true);
 
  158         return std::make_pair(std::numeric_limits<double>::quiet_NaN(), 
false);
 
  168       std::tuple<double, boost::optional<ProcessingStepRef>, 
bool>
 
  174           auto pos = step.scores.find(score_ref);
 
  175           if (pos != step.scores.end())
 
  177             return std::make_tuple(pos->second, step.processing_step_opt, 
true);
 
  181         return std::make_tuple(std::numeric_limits<double>::quiet_NaN(),
 
  
const AppliedProcessingSteps::nth_index< 1 >::type & getStepsAndScoresByStep() const
Return the applied processing steps (incl. scores) as a set ordered by processing step reference (opt...
Definition: ScoredProcessingResult.h:56
std::pair< double, bool > getScore(ScoreTypeRef score_ref, boost::optional< ProcessingStepRef > processing_step_opt) const
Definition: ScoredProcessingResult.h:144
AppliedProcessingSteps steps_and_scores
Definition: ScoredProcessingResult.h:46
std::tuple< double, boost::optional< ProcessingStepRef >, bool > getScoreAndStep(ScoreTypeRef score_ref) const
Definition: ScoredProcessingResult.h:169
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::pair< double, bool > getScore(ScoreTypeRef score_ref) const
Definition: ScoredProcessingResult.h:132
void addProcessingStep(ProcessingStepRef step_ref, const std::map< ScoreTypeRef, double > &scores=std::map< ScoreTypeRef, double >())
Add a processing step (and associated scores, if any)
Definition: ScoredProcessingResult.h:88
std::map< ScoreTypeRef, double > scores
Definition: AppliedProcessingStep.h:56
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:43
void addProcessingStep(const AppliedProcessingStep &step)
Definition: ScoredProcessingResult.h:66
bool find(TFinder &finder, const Pattern< TNeedle, FuzzyAC > &me, PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:884
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
A processing step that was applied to a data item, possibly with associated scores.
Definition: AppliedProcessingStep.h:52
boost::multi_index_container< AppliedProcessingStep, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::ordered_unique< boost::multi_index::member< AppliedProcessingStep, boost::optional< ProcessingStepRef >, &AppliedProcessingStep::processing_step_opt > > > > AppliedProcessingSteps
Definition: AppliedProcessingStep.h:116
Base class for ID data with scores and processing steps (and meta info)
Definition: ScoredProcessingResult.h:44
void addScore(ScoreTypeRef score_type, double score, const boost::optional< ProcessingStepRef > &processing_step_opt=boost::none)
Add a score (possibly connected to a processing step)
Definition: ScoredProcessingResult.h:97
boost::optional< ProcessingStepRef > processing_step_opt
Definition: AppliedProcessingStep.h:55
ScoredProcessingResult(const AppliedProcessingSteps &steps_and_scores=AppliedProcessingSteps())
Definition: ScoredProcessingResult.h:186
AppliedProcessingSteps::nth_index< 1 >::type & getStepsAndScoresByStep()
Return the applied processing steps (incl. scores) as a set ordered by processing step reference (opt...
Definition: ScoredProcessingResult.h:49
ScoredProcessingResult & operator+=(const ScoredProcessingResult &other)
Merge in data from another object.
Definition: ScoredProcessingResult.h:107