14 #ifndef __KOME_OBJECTS_PEAKS_H__
15 #define __KOME_OBJECTS_PEAKS_H__
22 #ifdef ENABLE_MASSPP_PARALLEL_TBB_MODE
23 #define DATAPOINTS_SOFT_CACHE_TBB
24 #endif // ENABLE_MASSPP_PARALLEL_TBB_MODE
83 #ifdef DATAPOINTS_SOFT_CACHE_TBB
86 #endif // DATAPOINTS_SOFT_CACHE_TBB
117 void addCharge(
const short charge );
124 unsigned int getNumberOfCharges();
132 short getCharge(
const unsigned int index );
139 void setPrecursor(
const double precursor );
146 double getPrecursor();
170 PeakElement* createPeak(
const double x,
const double y );
201 virtual bool onLoadData( boost::function<
int (
void*,
int ) > readFun );
209 virtual bool onSaveData( boost::function<
int (
void*,
int ) > writeFun );
216 virtual void onClearPoints();
224 virtual void onAddPoint(
const double x,
const double y );
233 virtual void onInsertPoint(
const unsigned int index,
const double x,
const double y );
240 virtual void onDeletePoint(
const unsigned int index );
247 virtual unsigned int onGetLength();
255 virtual double onGetX(
const unsigned int index );
263 virtual double onGetY(
const unsigned int index );
270 virtual void onReserve(
const unsigned int num );
294 #endif // __KOME_OBJECTS_PEAKS_H__
abstraction class of two dimention coordinate data
data points data of profile management class
std::vector< short > m_charges
std::vector< PeakElement * > m_peaks