libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
scorevalues.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Aurélien Berthier
3 * <aurelien.berthier@ls2n.fr>
4 *
5 *
6>>>>>>> main:src/pappsomspp/processing/specpeptidoms/scorevalues.cpp
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include "scorevalues.h"
22
23namespace pappso
24{
25namespace specpeptidoms
26{
36
38{
39 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
40}
41
45
46int
48{
49 return m_scoreTable[(std::uint8_t)type];
50}
51
52const ScoreValues &
54{
55 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
56 return *this;
57}
58
59} // namespace specpeptidoms
60} // namespace pappso
int get(ScoreType type) const
const ScoreValues & operator=(const ScoreValues &other)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39