mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
23 lines
654 B
C++
23 lines
654 B
C++
#ifndef CALCULATION_LOCAL_CONTEXT_H
|
|
#define CALCULATION_LOCAL_CONTEXT_H
|
|
|
|
#include <poincare.h>
|
|
#include "calculation_store.h"
|
|
|
|
namespace Calculation {
|
|
|
|
class LocalContext : public Poincare::Context {
|
|
public:
|
|
LocalContext(Poincare::GlobalContext * parentContext, CalculationStore * calculationStore);
|
|
void setExpressionForSymbolName(Poincare::Expression * expression, const Poincare::Symbol * symbol) override;
|
|
const Poincare::Expression * expressionForSymbol(const Poincare::Symbol * symbol) override;
|
|
private:
|
|
Poincare::Expression * ansValue();
|
|
CalculationStore * m_calculationStore;
|
|
Poincare::GlobalContext * m_parentContext;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|