OpenMS
Loading...
Searching...
No Matches
OSWProtein Class Reference

A Protein is the highest entity and contains one or more peptides which were found/traced. More...

#include <OpenMS/DATASTRUCTURES/OSWData.h>

Collaboration diagram for OSWProtein:
[legend]

Public Member Functions

 OSWProtein ()=default
 just a dummy feature to allow for acceptor output values etc
 
 OSWProtein (const std::string &accession, const Size id, std::vector< OSWPeptidePrecursor > &&peptides)
 custom c'tor which fills all the members with data; all members are read-only
 
 OSWProtein (const OSWProtein &rhs)=default
 Copy c'tor.
 
OSWProteinoperator= (const OSWProtein &rhs)=default
 assignment operator
 
 OSWProtein (OSWProtein &&rhs)=default
 move c'tor
 
OSWProteinoperator= (OSWProtein &&rhs)=default
 move assignment operator
 
const std::string & getAccession () const
 Protein accession (UniProt-style identifier supplied at construction).
 
Size getID () const
 Protein ID as recorded by the OSW file (the PROTEIN_ID column in the sqlite schema).
 
const std::vector< OSWPeptidePrecursor > & getPeptidePrecursors () const
 Charged peptide precursors that map to this protein.
 

Private Attributes

std::string accession_
 
Size id_
 
std::vector< OSWPeptidePrecursorpeptides_
 

Detailed Description

A Protein is the highest entity and contains one or more peptides which were found/traced.

Constructor & Destructor Documentation

◆ OSWProtein() [1/4]

OSWProtein ( )
default

just a dummy feature to allow for acceptor output values etc

◆ OSWProtein() [2/4]

OSWProtein ( const std::string &  accession,
const Size  id,
std::vector< OSWPeptidePrecursor > &&  peptides 
)

custom c'tor which fills all the members with data; all members are read-only

◆ OSWProtein() [3/4]

OSWProtein ( const OSWProtein rhs)
default

Copy c'tor.

◆ OSWProtein() [4/4]

OSWProtein ( OSWProtein &&  rhs)
default

move c'tor

Member Function Documentation

◆ getAccession()

const std::string & getAccession ( ) const
inline

Protein accession (UniProt-style identifier supplied at construction).

◆ getID()

Size getID ( ) const
inline

Protein ID as recorded by the OSW file (the PROTEIN_ID column in the sqlite schema).

◆ getPeptidePrecursors()

const std::vector< OSWPeptidePrecursor > & getPeptidePrecursors ( ) const
inline

Charged peptide precursors that map to this protein.

◆ operator=() [1/2]

OSWProtein & operator= ( const OSWProtein rhs)
default

assignment operator

◆ operator=() [2/2]

OSWProtein & operator= ( OSWProtein &&  rhs)
default

move assignment operator

Member Data Documentation

◆ accession_

std::string accession_
private

◆ id_

Size id_
private

◆ peptides_

std::vector<OSWPeptidePrecursor> peptides_
private