Blame view

epsilon-master/apps/calculation/calculation_store.h 629 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #ifndef CALCULATION_CALCULATION_STORE_H
  #define CALCULATION_CALCULATION_STORE_H
  
  #include "calculation.h"
  
  namespace Calculation {
  
  class CalculationStore {
  public:
    CalculationStore();
    Calculation * calculationAtIndex(int i);
    Calculation * push(const char * text, Poincare::Context * context);
    void deleteCalculationAtIndex(int i);
    void deleteAll();
    int numberOfCalculations();
    void tidy();
    Poincare::Expression * ansExpression(Poincare::Context * context);
    static constexpr int k_maxNumberOfCalculations = 10;
  private:
    int m_startIndex;
    Calculation m_calculations[k_maxNumberOfCalculations];
  };
  
  }
  
  #endif