libpappsomspp
Library for mass spectrometry
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
13 
14 
15 namespace pappso
16 {
17 
18 
20  : m_decimalPlaces(decimal_places)
21 {
22 }
23 
24 
26 {
27 }
28 
29 void
31 {
32  m_decimalPlaces = value;
33 }
34 
35 
36 int
38 {
39  return m_decimalPlaces;
40 }
41 
42 
43 void
45  const FilterResampleKeepXRange &range)
46 {
47  m_filterXRange = range;
48  m_isApplyXRangeFilter = true;
49 }
50 
51 
52 MapTrace &
54  Iterator begin,
55  Iterator end)
56 {
57  for(Iterator iterator = begin; iterator != end; ++iterator)
58  combine(map_trace, *(*iterator));
59 
60  return map_trace;
61 }
62 
63 
64 } // namespace pappso
pappso::MassDataCombinerInterface::Iterator
std::vector< const Trace * >::const_iterator Iterator
Definition: massdatacombinerinterface.h:39
pappso::MassDataCombinerInterface::m_decimalPlaces
int m_decimalPlaces
Number of decimals to use for the keys (x values)
Definition: massdatacombinerinterface.h:44
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
pappso::MapTrace
Definition: maptrace.h:33
pappso::MassDataCombinerInterface::getDecimalPlaces
int getDecimalPlaces() const
Definition: massdatacombinerinterface.cpp:37
pappso::MassDataCombinerInterface::setFilterResampleKeepXRange
void setFilterResampleKeepXRange(const FilterResampleKeepXRange &range)
Definition: massdatacombinerinterface.cpp:44
pappso::MassDataCombinerInterface::combine
virtual MapTrace & combine(MapTrace &map_trace, const Trace &trace) const =0
pappso::MassDataCombinerInterface::m_filterXRange
FilterResampleKeepXRange m_filterXRange
Definition: massdatacombinerinterface.h:48
pappso::MassDataCombinerInterface::MassDataCombinerInterface
MassDataCombinerInterface(int decimal_places=-1)
Definition: massdatacombinerinterface.cpp:19
pappso::MassDataCombinerInterface::setDecimalPlaces
void setDecimalPlaces(int value)
Definition: massdatacombinerinterface.cpp:30
pappso::FilterResampleKeepXRange
Definition: filterresample.h:101
massdatacombinerinterface.h
pappso::MassDataCombinerInterface::~MassDataCombinerInterface
virtual ~MassDataCombinerInterface()
Definition: massdatacombinerinterface.cpp:25
pappso::MassDataCombinerInterface::m_isApplyXRangeFilter
bool m_isApplyXRangeFilter
Definition: massdatacombinerinterface.h:46