mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[Sequences] Changing the name of CacheContext to SequenceCacheContext
Change-Id: If2d542748f6f7b2363d6c1443f88c058475945eb
This commit is contained in:
committed by
Émilie Feral
parent
960335c330
commit
4274b558b6
28
apps/shared/sequence_cache_context.h
Normal file
28
apps/shared/sequence_cache_context.h
Normal 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
|
||||
Reference in New Issue
Block a user