| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
TargetedSpectraExtractor::Comparator Class Referenceabstract

`#include <OpenMS/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.h>`

Inheritance diagram for TargetedSpectraExtractor::Comparator:

## Public Member Functions

virtual | ~Comparator ()=default
virtual void | generateScores (const MSSpectrum &spec, std::vector< std::pair< Size, double >> &scores, double min_score) const =0
virtual void | init (const std::vector< MSSpectrum > &library, const std::map< String, DataValue > &options)=0
const std::vector< MSSpectrum > & | getLibrary () const

## Protected Attributes

std::vector< MSSpectrum > | library_

## Constructor & Destructor Documentation

## ◆ ~Comparator()

virtual ~Comparator | ( |  | ) |

virtual default

## Member Function Documentation

## ◆ generateScores()

virtual void generateScores | ( | const MSSpectrum & | spec,
|  | std::vector< std::pair< Size, double >> & | scores,
|  | double | min_score
| ) |  | const

pure virtual

Implemented in TargetedSpectraExtractor::BinnedSpectrumComparator.

## ◆ getLibrary()

const std::vector<MSSpectrum>& getLibrary | ( |  | ) | const

inline

## ◆ init()

virtual void init | ( | const std::vector< MSSpectrum > & | library,
|  | const std::map< String, DataValue > & | options
| ) |  |

pure virtual

Implemented in TargetedSpectraExtractor::BinnedSpectrumComparator.

## Member Data Documentation

## ◆ library_

std::vector<MSSpectrum> library_

protected