libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::specglob::ScoreValues Class Reference

#include <scorevalues.h>

Public Member Functions

 ScoreValues ()
 
 ScoreValues (const ScoreValues &other)
 
virtual ~ScoreValues ()
 
const ScoreValuesoperator= (const ScoreValues &other)
 
int get (ScoreValueType type)
 
void set (ScoreValueType type, int value)
 

Private Attributes

int m_scoreTable [10]
 

Detailed Description

Todo:
write docs

Definition at line 53 of file scorevalues.h.

Constructor & Destructor Documentation

◆ ScoreValues() [1/2]

pappso::specglob::ScoreValues::ScoreValues ( )

Default constructor

Definition at line 46 of file scorevalues.cpp.

47{
48
49 // #Scores to apply
50 // #Score for non alignment (int)
51 // sg.scoreNonAlign=-4
53
54 // #Score for re-alignment (int)
55 // sg.scoreReAlignNative=-8
57 // sg.scoreReAlignSym=-8
59 // sg.scoreReAlignBoth=-6
61
62 // #Score for good alignment(int)
66
67
68 // #Score for re - alignment without offset(int)
72}
@ scoreAlignNative
Score for good alignment native (int)
@ scoreReAlignSymNO
Score for re-alignment without offset symmetric (int)
@ scoreNonAlign
Score for non alignment (int)
@ scoreAlignBoth
Score for good alignment both (int)
@ scoreReAlignBoth
Score for re-alignment both (int)
@ scoreReAlignBothNO
Score for re-alignment without offset both (int)
@ scoreReAlignSym
Score for re-alignment symmetric (int)
@ scoreAlignSym
Score for good alignment symmetric (int)
@ scoreReAlignNativeNO
Score for re-alignment without offset native (int)

References m_scoreTable, pappso::specglob::scoreAlignBoth, pappso::specglob::scoreAlignNative, pappso::specglob::scoreAlignSym, pappso::specglob::scoreNonAlign, pappso::specglob::scoreReAlignBoth, pappso::specglob::scoreReAlignBothNO, pappso::specglob::scoreReAlignNative, pappso::specglob::scoreReAlignNativeNO, pappso::specglob::scoreReAlignSym, and pappso::specglob::scoreReAlignSymNO.

◆ ScoreValues() [2/2]

pappso::specglob::ScoreValues::ScoreValues ( const ScoreValues other)

Definition at line 74 of file scorevalues.cpp.

75{
76 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
77}

References m_scoreTable.

◆ ~ScoreValues()

pappso::specglob::ScoreValues::~ScoreValues ( )
virtual

Destructor

Definition at line 79 of file scorevalues.cpp.

80{
81}

Member Function Documentation

◆ get()

int pappso::specglob::ScoreValues::get ( ScoreValueType  type)

Definition at line 84 of file scorevalues.cpp.

85{
86 return m_scoreTable[(std::uint8_t)type];
87}

References m_scoreTable.

Referenced by pappso::specglob::SpectralAlignment::align(), and pappso::specglob::SpectralAlignment::fillMatricesWithScores().

◆ operator=()

const ScoreValues & pappso::specglob::ScoreValues::operator= ( const ScoreValues other)

Definition at line 96 of file scorevalues.cpp.

97{
98 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
99 return *this;
100}

References m_scoreTable.

◆ set()

void pappso::specglob::ScoreValues::set ( ScoreValueType  type,
int  value 
)

Definition at line 90 of file scorevalues.cpp.

91{
92 m_scoreTable[(std::uint8_t)type] = value;
93}

References m_scoreTable.

Member Data Documentation

◆ m_scoreTable

int pappso::specglob::ScoreValues::m_scoreTable[10]
private

Definition at line 76 of file scorevalues.h.

Referenced by ScoreValues(), ScoreValues(), get(), operator=(), and set().


The documentation for this class was generated from the following files: