Files
Upsilon/apps/statistics/data.h
Émilie Feral 4220131160 [apps/statistics] Create a model data
Change-Id: Iad946d1a1bc27aaea985f73d87163e8368206d40
2016-12-19 17:00:49 +01:00

27 lines
617 B
C++

#ifndef STATISTICS_DATA_H
#define STATISTICS_DATA_H
namespace Statistics {
class Data {
public:
Data();
// Delete the implicit copy constructor: the object is heavy
Data(const Data&) = delete;
int numberOfPairs() const;
float valueAtIndex(int index);
int sizeAtIndex(int index);
void setValueAtIndex(float value, int index);
void setSizeAtIndex(int size, int index);
// TODO: decide the max number of elements after optimization
constexpr static int k_maxNumberOfPairs = 500;
private:
int m_sizes[k_maxNumberOfPairs];
float m_values[k_maxNumberOfPairs];
int m_numberOfPairs;
};
}
#endif