#include "cartesian_function_store.h" extern "C" { #include #include } #include namespace Graph { constexpr int CartesianFunctionStore::k_maxNumberOfFunctions; constexpr KDColor CartesianFunctionStore::k_defaultColors[k_maxNumberOfFunctions]; constexpr const char * CartesianFunctionStore::k_functionNames[k_maxNumberOfFunctions]; CartesianFunctionStore::CartesianFunctionStore() : Shared::FunctionStore() { addEmptyFunction(); } uint32_t CartesianFunctionStore::storeChecksum() { size_t dataLengthInBytes = m_numberOfFunctions*sizeof(CartesianFunction); assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4 return Ion::crc32((uint32_t *)m_functions, dataLengthInBytes>>2); } CartesianFunction * CartesianFunctionStore::functionAtIndex(int i) { assert(i>=0 && i=0 && i