[Sequences] Changing the name of CacheContext to SequenceCacheContext

Change-Id: If2d542748f6f7b2363d6c1443f88c058475945eb
This commit is contained in:
Arthur Camouseigt
2020-09-18 17:41:12 +02:00
committed by Émilie Feral
parent 960335c330
commit 4274b558b6
5 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,28 @@
#ifndef SHARED_SEQUENCE_CACHE_CONTEXT_H
#define SHARED_SEQUENCE_CACHE_CONTEXT_H
#include <poincare/context.h>
#include <poincare/expression.h>
#include <poincare/symbol.h>
#include "sequence_context.h"
namespace Shared {
template<typename T>
class SequenceCacheContext : public Poincare::ContextWithParent {
public:
SequenceCacheContext(SequenceContext * sequenceContext);
const Poincare::Expression expressionForSymbolAbstract(const Poincare::SymbolAbstract & symbol, bool clone, float unknownSymbolValue = NAN) override;
void setValueForSymbol(T value, const Poincare::Symbol & symbol);
void setNValue(int n) { m_nValue = n; }
private:
int nameIndexForSymbol(const Poincare::Symbol & symbol);
int rankIndexForSymbol(const Poincare::Symbol & symbol);
T m_values[MaxNumberOfSequences][MaxRecurrenceDepth];
int m_nValue;
SequenceContext * m_sequenceContext;
};
}
#endif