mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
24 lines
677 B
C++
24 lines
677 B
C++
#ifndef SEQUENCE_CACHE_CONTEXT_H
|
|
#define SEQUENCE_CACHE_CONTEXT_H
|
|
|
|
#include <poincare.h>
|
|
#include "sequence_context.h"
|
|
|
|
namespace Sequence {
|
|
|
|
class CacheContext : public Poincare::VariableContext {
|
|
public:
|
|
CacheContext(Poincare::Context * parentContext);
|
|
~CacheContext();
|
|
const Poincare::Expression * expressionForSymbol(const Poincare::Symbol * symbol) override;
|
|
template<typename T> void setValueForSymbol(T value, const Poincare::Symbol * symbol);
|
|
private:
|
|
int nameIndexForSymbol(const Poincare::Symbol * symbol);
|
|
int rankIndexForSymbol(const Poincare::Symbol * symbol);
|
|
Poincare::Expression * m_values[MaxNumberOfSequences][MaxRecurrenceDepth];
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|