Numworks Epsilon  1.4.1
Graphing Calculator Operating System
cache_context.h
Go to the documentation of this file.
1 #ifndef SEQUENCE_CACHE_CONTEXT_H
2 #define SEQUENCE_CACHE_CONTEXT_H
3 
4 #include <poincare.h>
5 #include "sequence_context.h"
6 
7 namespace Sequence {
8 
9 template<typename T>
11 public:
12  CacheContext(Poincare::Context * parentContext);
13  const Poincare::Expression * expressionForSymbol(const Poincare::Symbol * symbol) override;
14  void setValueForSymbol(T value, const Poincare::Symbol * symbol);
15 private:
16  int nameIndexForSymbol(const Poincare::Symbol * symbol);
17  int rankIndexForSymbol(const Poincare::Symbol * symbol);
18  Poincare::Complex<T> m_values[MaxNumberOfSequences][MaxRecurrenceDepth];
19 };
20 
21 }
22 
23 #endif
CacheContext(Poincare::Context *parentContext)
#define T(x)
Definition: events.cpp:26
Definition: app.cpp:7
void setValueForSymbol(T value, const Poincare::Symbol *symbol)
const Poincare::Expression * expressionForSymbol(const Poincare::Symbol *symbol) override