mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
32 lines
844 B
C++
32 lines
844 B
C++
#ifndef SHARED_STORE_CONTEXT_H
|
|
#define SHARED_STORE_CONTEXT_H
|
|
|
|
#include <poincare.h>
|
|
#include "double_pair_store.h"
|
|
#include <cmath>
|
|
|
|
namespace Shared {
|
|
|
|
class StoreContext : public Poincare::Context {
|
|
public:
|
|
StoreContext(Shared::DoublePairStore * store) :
|
|
Poincare::Context(),
|
|
m_store(store),
|
|
m_seriesPairIndex(-1),
|
|
m_parentContext(nullptr),
|
|
m_value(NAN)
|
|
{}
|
|
void setParentContext(Poincare::Context * parentContext) { m_parentContext = parentContext; }
|
|
void setSeriesPairIndex(int j) { m_seriesPairIndex = j; }
|
|
void setExpressionForSymbolName(const Poincare::Expression expression, const Poincare::Symbol symbol, Poincare::Context & context) override;
|
|
protected:
|
|
Shared::DoublePairStore * m_store;
|
|
int m_seriesPairIndex;
|
|
Poincare::Context * m_parentContext;
|
|
Poincare::Float<double> m_value;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|