11 constexpr
KDColor CartesianFunctionStore::k_defaultColors[k_maxNumberOfFunctions];
12 constexpr
const char * CartesianFunctionStore::k_functionNames[k_maxNumberOfFunctions];
22 assert((dataLengthInBytes & 0x3) == 0);
25 checksums[i] = m_functions[i].
checksum();
32 return &m_functions[i];
45 const char * name = firstAvailableName();
46 KDColor color = firstAvailableColor();
62 m_functions[j] = m_functions[j+1];
76 const char * CartesianFunctionStore::firstAvailableName() {
80 if (m_functions[j].name() == k_functionNames[k]) {
86 return k_functionNames[k];
89 return k_functionNames[0];
92 const KDColor CartesianFunctionStore::firstAvailableColor() {
96 if (m_functions[j].color() == k_defaultColors[k]) {
102 return k_defaultColors[k];
105 return k_defaultColors[0];
111 m_functions[i] = emptyFunction;
char symbol() const override
CartesianFunction * functionAtIndex(int i) override
virtual uint32_t checksum()
virtual Function * definedFunctionAtIndex(int i)
CartesianFunction * addEmptyFunction() override
constexpr KDColor KDColorBlack
void removeFunction(Shared::Function *f) override
virtual Function * activeFunctionAtIndex(int i)
void removeAll() override
uint32_t crc32(const uint32_t *data, size_t length)
uint32_t storeChecksum() override
CartesianFunction * activeFunctionAtIndex(int i) override
int maxNumberOfFunctions() override
static constexpr int k_maxNumberOfFunctions
CartesianFunction * definedFunctionAtIndex(int i) override