libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
itemcart.cpp
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/processing/spectree/itemcart.cpp
3
* \date 13/12/2023
4
* \author Olivier Langella
5
* \brief basic object to study using spectree
6
*
7
* C++ implementation of algorithm already described in :
8
* 1. David, M., Fertin, G., Rogniaux, H. & Tessier, D. SpecOMS: A Full Open
9
* Modification Search Method Performing All-to-All Spectra Comparisons within
10
* Minutes. J. Proteome Res. 16, 3030–3038 (2017).
11
*
12
* https://www.theses.fr/2019NANT4092
13
*/
14
15
16
/*
17
* SpecTree
18
* Copyright (C) 2023 Olivier Langella
19
* <olivier.langella@universite-paris-saclay.fr>
20
*
21
* This program is free software: you can redistribute ipetide to spectrum
22
* alignmentt and/or modify it under the terms of the GNU General Public License
23
* as published by the Free Software Foundation, either version 3 of the
24
* License, or (at your option) any later version.
25
*
26
* This program is distributed in the hope that it will be useful,
27
* but WITHOUT ANY WARRANTY; without even the implied warranty of
28
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
* GNU General Public License for more details.
30
*
31
* You should have received a copy of the GNU General Public License
32
* along with this program. If not, see <http://www.gnu.org/licenses/>.
33
*
34
*/
35
36
#include "
itemcart.h
"
37
38
namespace
pappso
39
{
40
namespace
spectree
41
{
42
ItemCart::ItemCart
()
43
{
44
}
45
46
ItemCart::ItemCart
(std::size_t
id
,
const
std::vector<std::size_t> &item_list)
47
:
m_id
(id),
m_itemList
(item_list)
48
{
49
}
50
51
52
ItemCart::ItemCart
(
const
ItemCart
&other)
53
{
54
m_id
= other.
m_id
;
55
m_itemList
= other.
m_itemList
;
56
}
57
58
ItemCart::~ItemCart
()
59
{
60
}
61
62
std::size_t
63
ItemCart::getId
()
const
64
{
65
return
m_id
;
66
}
67
68
ItemCart
&
69
ItemCart::operator=
(
const
ItemCart
&other)
70
{
71
m_id
= other.
m_id
;
72
m_itemList
= other.
m_itemList
;
73
return
*
this
;
74
}
75
76
const
std::vector<std::size_t> &
77
ItemCart::getItemList
()
const
78
{
79
return
m_itemList
;
80
}
81
}
// namespace spectree
82
}
// namespace pappso
pappso::spectree::ItemCart
container for spectree items
Definition
itemcart.h:55
pappso::spectree::ItemCart::operator=
ItemCart & operator=(const ItemCart &other)
Definition
itemcart.cpp:69
pappso::spectree::ItemCart::~ItemCart
virtual ~ItemCart()
Definition
itemcart.cpp:58
pappso::spectree::ItemCart::m_itemList
std::vector< std::size_t > m_itemList
Definition
itemcart.h:84
pappso::spectree::ItemCart::ItemCart
ItemCart()
Definition
itemcart.cpp:42
pappso::spectree::ItemCart::getItemList
const std::vector< std::size_t > & getItemList() const
Definition
itemcart.cpp:77
pappso::spectree::ItemCart::getId
std::size_t getId() const
Definition
itemcart.cpp:63
pappso::spectree::ItemCart::m_id
std::size_t m_id
Definition
itemcart.h:83
itemcart.h
pappso::spectree
Definition
bucket.cpp:43
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
core
processing
spectree
itemcart.cpp
Generated on
for libpappsomspp by
1.17.0