Files
Upsilon/apps/data.h
Émilie Feral e0b56e6588 [apps] add methods to the abstract model "data"
Change-Id: I24993d6ffcee9b030716c310f48260a78fe61546
2017-01-09 15:08:56 +01:00

22 lines
586 B
C++

#ifndef APPS_DATA_H
#define APPS_DATA_H
class Data {
public:
Data();
virtual void deletePairAtIndex(int index) = 0;
virtual void setXValueAtIndex(float f, int index) = 0;
virtual void setYValueAtIndex(float f, int index) = 0;
virtual float xValueAtIndex(int index) = 0;
virtual float yValueAtIndex(int index) = 0;
virtual void deleteAllXValues() = 0;
virtual void deleteAllYValues() = 0;
int numberOfPairs();
// TODO: decide the max number of elements after optimization
constexpr static int k_maxNumberOfPairs = 500;
protected:
int m_numberOfPairs;
};
#endif