mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
27 lines
617 B
C++
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
|