libpappsomspp
Library for mass spectrometry
pappso::MassDataCombinerInterface Class Referenceabstract

#include <massdatacombinerinterface.h>

Inheritance diagram for pappso::MassDataCombinerInterface:
pappso::MassSpectrumCombiner pappso::TraceCombiner pappso::MassSpectrumMinusCombiner pappso::MassSpectrumPlusCombiner pappso::TraceMinusCombiner pappso::TracePlusCombiner

Public Types

using Iterator = std::vector< const Trace * >::const_iterator
 

Public Member Functions

 MassDataCombinerInterface (int decimal_places=-1)
 
virtual ~MassDataCombinerInterface ()
 
void setDecimalPlaces (int value)
 
int getDecimalPlaces () const
 
virtual MapTracecombine (MapTrace &map_trace, Iterator begin, Iterator end)
 
virtual MapTracecombine (MapTrace &map_trace, const Trace &trace) const =0
 
virtual MapTracecombine (MapTrace &map_trace_out, const MapTrace &map_trace_in) const =0
 

Protected Attributes

int m_decimalPlaces = -1
 Number of decimals to use for the keys (x values) More...
 

Detailed Description

Definition at line 25 of file massdatacombinerinterface.h.

Member Typedef Documentation

◆ Iterator

using pappso::MassDataCombinerInterface::Iterator = std::vector<const Trace *>::const_iterator

Definition at line 35 of file massdatacombinerinterface.h.

Constructor & Destructor Documentation

◆ MassDataCombinerInterface()

pappso::MassDataCombinerInterface::MassDataCombinerInterface ( int  decimal_places = -1)

Definition at line 19 of file massdatacombinerinterface.cpp.

20  : m_decimalPlaces(decimal_places)
21 {
22 }
int m_decimalPlaces
Number of decimals to use for the keys (x values)

◆ ~MassDataCombinerInterface()

pappso::MassDataCombinerInterface::~MassDataCombinerInterface ( )
virtual

Definition at line 25 of file massdatacombinerinterface.cpp.

26 {
27 }

Member Function Documentation

◆ combine() [1/3]

virtual MapTrace& pappso::MassDataCombinerInterface::combine ( MapTrace map_trace,
const Trace trace 
) const
pure virtual

◆ combine() [2/3]

MapTrace & pappso::MassDataCombinerInterface::combine ( MapTrace map_trace,
Iterator  begin,
Iterator  end 
)
virtual

Definition at line 45 of file massdatacombinerinterface.cpp.

48 {
49  for(Iterator iterator = begin; iterator != end; ++iterator)
50  combine(map_trace, *(*iterator));
51 
52  return map_trace;
53 }
std::vector< const Trace * >::const_iterator Iterator
virtual MapTrace & combine(MapTrace &map_trace, Iterator begin, Iterator end)

◆ combine() [3/3]

virtual MapTrace& pappso::MassDataCombinerInterface::combine ( MapTrace map_trace_out,
const MapTrace map_trace_in 
) const
pure virtual

◆ getDecimalPlaces()

int pappso::MassDataCombinerInterface::getDecimalPlaces ( ) const

Definition at line 38 of file massdatacombinerinterface.cpp.

39 {
40  return m_decimalPlaces;
41 }

References m_decimalPlaces.

◆ setDecimalPlaces()

void pappso::MassDataCombinerInterface::setDecimalPlaces ( int  value)

Definition at line 31 of file massdatacombinerinterface.cpp.

32 {
33  m_decimalPlaces = value;
34 }

References m_decimalPlaces.

Member Data Documentation

◆ m_decimalPlaces


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