[poincare/expression_node] TODO: use ReductionContext via pointers

This commit is contained in:
Léa Saviot
2020-11-09 15:30:41 +01:00
committed by EmilieNumworks
parent 5df60e946a
commit 4df996cfd2

View File

@@ -286,6 +286,12 @@ public:
/*!*/ virtual void deepReduceChildren(ReductionContext reductionContext);
/*!*/ virtual void deepBeautifyChildren(ReductionContext reductionContext);
/*!*/ virtual Expression shallowReduce(ReductionContext reductionContext);
/* TODO: shallowBeautify takes a pointer to the reduction context, unlike
* other methods. The pointer is needed to allow UnitConvert to modify the
* context and prevent unit modifications (in Expression::deepBeautify, after
* calling UnitConvert::shallowBeautify).
* We should uniformize this behaviour and use pointers in other methods using
* the reduction context. */
/*!*/ virtual Expression shallowBeautify(ReductionContext * reductionContext);
/*!*/ virtual bool derivate(ReductionContext, Expression symbol, Expression symbolValue);
virtual Expression unaryFunctionDifferential();