[apps] Modular reimplementation of application models (stores and

ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
This commit is contained in:
Émilie Feral
2017-01-09 14:57:13 +01:00
parent 6e9528103b
commit affda5eae9
70 changed files with 1406 additions and 1416 deletions

View File

@@ -2,6 +2,7 @@
extern "C" {
#include <assert.h>
}
#include <stddef.h>
namespace Graph {
@@ -15,6 +16,13 @@ FunctionStore::FunctionStore() :
addEmptyFunction();
}
uint32_t FunctionStore::storeChecksum() {
size_t dataLengthInBytes = m_numberOfFunctions*sizeof(Function);
assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4
//return Ion::crc32((uint32_t *)m_functions, dataLengthInBytes>>2);
return m_numberOfFunctions;
}
Function * FunctionStore::functionAtIndex(int i) {
assert(i>=0 && i<m_numberOfFunctions);
return &m_functions[i];