Numworks Epsilon  1.4.1
Graphing Calculator Operating System
cartesian_function_store.h
Go to the documentation of this file.
1 #ifndef GRAPH_CARTESIAN_FUNCTION_STORE_H
2 #define GRAPH_CARTESIAN_FUNCTION_STORE_H
3 
4 #include "cartesian_function.h"
5 #include "../shared/function_store.h"
6 #include <stdint.h>
7 #include <escher.h>
8 
9 namespace Graph {
10 
12 public:
14  uint32_t storeChecksum() override;
15  CartesianFunction * functionAtIndex(int i) override;
16  CartesianFunction * activeFunctionAtIndex(int i) override;
17  CartesianFunction * definedFunctionAtIndex(int i) override;
19  void removeFunction(Shared::Function * f) override;
20  int maxNumberOfFunctions() override;
21  char symbol() const override;
22  void removeAll() override;
23  static constexpr int k_maxNumberOfFunctions = 4;
24 private:
25  const char * firstAvailableName() override;
26  const KDColor firstAvailableColor() override;
27  static constexpr KDColor k_defaultColors[k_maxNumberOfFunctions] = {
29  };
30  static constexpr const char * k_functionNames[k_maxNumberOfFunctions] = {
31  "f", "g", "h", "p",
32  };
33  CartesianFunction m_functions[k_maxNumberOfFunctions];
34 };
35 
36 }
37 
38 #endif
static constexpr KDColor YellowDark
Definition: palette.h:8
static constexpr KDColor Blue
Definition: palette.h:27
CartesianFunction * functionAtIndex(int i) override
Definition: app.cpp:9
unsigned int uint32_t
Definition: stdint.h:6
CartesianFunction * addEmptyFunction() override
void removeFunction(Shared::Function *f) override
static constexpr KDColor Green
Definition: palette.h:29
Definition: color.h:6
static constexpr KDColor Red
Definition: palette.h:23
CartesianFunction * activeFunctionAtIndex(int i) override
static constexpr int k_maxNumberOfFunctions
CartesianFunction * definedFunctionAtIndex(int i) override