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>
10
class
CacheContext
:
public
Poincare::VariableContext
<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
Poincare::Context
Definition:
context.h:9
Sequence::CacheContext::CacheContext
CacheContext(Poincare::Context *parentContext)
Definition:
cache_context.cpp:9
poincare.h
T
#define T(x)
Definition:
events.cpp:26
Sequence::CacheContext
Definition:
cache_context.h:10
Poincare::Complex
Definition:
complex.h:12
sequence_context.h
Poincare::Symbol
Definition:
symbol.h:8
Sequence
Definition:
app.cpp:7
Poincare::VariableContext
Definition:
variable_context.h:10
Poincare::Expression
Definition:
expression.h:16
Sequence::CacheContext::setValueForSymbol
void setValueForSymbol(T value, const Poincare::Symbol *symbol)
Definition:
cache_context.cpp:26
Sequence::CacheContext::expressionForSymbol
const Poincare::Expression * expressionForSymbol(const Poincare::Symbol *symbol) override
Definition:
cache_context.cpp:17
epsilon
apps
sequence
cache_context.h
Generated by
1.8.14