libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
massdatacombinerinterface.cpp
Go to the documentation of this file.
1
2
/////////////////////// StdLib includes
3
4
5
/////////////////////// Qt includes
6
7
8
/////////////////////// pappsomspp includes
9
10
11
/////////////////////// Local includes
12
#include "
massdatacombinerinterface.h
"
13
14
15
namespace
pappso
16
{
17
18
19
MassDataCombinerInterface::MassDataCombinerInterface
(
int
decimal_places)
20
:
m_decimalPlaces
(decimal_places)
21
{
22
}
23
24
25
MassDataCombinerInterface::~MassDataCombinerInterface
()
26
{
27
}
28
29
30
void
31
MassDataCombinerInterface::setDecimalPlaces
(
int
value)
32
{
33
m_decimalPlaces
= value;
34
}
35
36
37
int
38
MassDataCombinerInterface::getDecimalPlaces
()
const
39
{
40
return
m_decimalPlaces
;
41
}
42
43
44
// using Iterator = std::vector<const Trace *>::const_iterator;
45
MapTrace
&
46
MassDataCombinerInterface::combine
(
MapTrace
&map_trace,
Iterator
begin,
Iterator
end)
47
{
48
for
(
Iterator
iterator = begin; iterator != end; ++iterator)
49
combine
(map_trace, *(*iterator));
50
51
return
map_trace;
52
}
53
54
}
// namespace pappso
pappso::MapTrace
Definition
maptrace.h:36
pappso::MassDataCombinerInterface::Iterator
std::vector< const Trace * >::const_iterator Iterator
Definition
massdatacombinerinterface.h:35
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace, Iterator begin, Iterator end)
Definition
massdatacombinerinterface.cpp:46
pappso::MassDataCombinerInterface::getDecimalPlaces
int getDecimalPlaces() const
Definition
massdatacombinerinterface.cpp:38
pappso::MassDataCombinerInterface::m_decimalPlaces
int m_decimalPlaces
Number of decimals to use for the keys (x values).
Definition
massdatacombinerinterface.h:44
pappso::MassDataCombinerInterface::setDecimalPlaces
void setDecimalPlaces(int value)
Definition
massdatacombinerinterface.cpp:31
pappso::MassDataCombinerInterface::MassDataCombinerInterface
MassDataCombinerInterface(int decimal_places=-1)
Definition
massdatacombinerinterface.cpp:19
pappso::MassDataCombinerInterface::~MassDataCombinerInterface
virtual ~MassDataCombinerInterface()
Definition
massdatacombinerinterface.cpp:25
massdatacombinerinterface.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
core
processing
combiners
massdatacombinerinterface.cpp
Generated on
for libpappsomspp by
1.17.0