OpenMS
SpectrumIdentification.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 
14 namespace OpenMS
15 {
23  class OPENMS_DLLAPI SpectrumIdentification :
24  public MetaInfoInterface
25  {
26 public:
27 
29 
30  SpectrumIdentification() = default;
43  bool operator==(const SpectrumIdentification & rhs) const;
45  bool operator!=(const SpectrumIdentification & rhs) const;
47 
48  // @name Accessors
50  void setHits(const std::vector<IdentificationHit> & hits);
52 
54  void addHit(const IdentificationHit & hit);
55 
57  const std::vector<IdentificationHit> & getHits() const;
59 
60 protected:
61 
63  std::vector<IdentificationHit> hits_;
64  };
65 
66 } //namespace OpenMS
Represents a object which can store the information of an analysisXML instance.
Definition: IdentificationHit.h:24
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:35
Represents a object which can store the information of an analysisXML instance.
Definition: SpectrumIdentification.h:25
bool operator==(const SpectrumIdentification &rhs) const
Equality operator.
SpectrumIdentification & operator=(const SpectrumIdentification &)=default
Assignment operator.
bool operator!=(const SpectrumIdentification &rhs) const
Inequality operator.
const std::vector< IdentificationHit > & getHits() const
returns the identification hits of this spectrum identification
SpectrumIdentification & operator=(SpectrumIdentification &&) &=default
Move assignment operator.
virtual ~SpectrumIdentification()
Destructor.
std::vector< IdentificationHit > hits_
Single peptide hits.
Definition: SpectrumIdentification.h:63
void addHit(const IdentificationHit &hit)
adds a single identification hit to the hits
SpectrumIdentification(SpectrumIdentification &&)=default
Move constructor.
String id_
Identifier.
Definition: SpectrumIdentification.h:62
SpectrumIdentification(const SpectrumIdentification &)=default
Copy constructor.
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22