6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <poincare/empty_expression.h>
#include <poincare/layout_engine.h>
#include <poincare/src/layout/empty_layout.h>
#include <ion/charset.h>
extern "C" {
#include <math.h>
}
namespace Poincare {
Expression * EmptyExpression::clone() const {
return new EmptyExpression();
}
int EmptyExpression::writeTextInBuffer(char * buffer, int bufferSize, PrintFloat::Mode floatDisplayMode, int numberOfSignificantDigits) const {
return LayoutEngine::writeOneCharInBuffer(buffer, bufferSize, Ion::Charset::Empty);
}
ExpressionLayout * EmptyExpression::createLayout(PrintFloat::Mode floatDisplayMode, int numberOfSignificantDigits) const {
return new EmptyLayout();
}
template<typename T> Complex<T> * EmptyExpression::templatedApproximate(Context& context, AngleUnit angleUnit) const {
return new Complex<T>(Complex<T>::Undefined());
}
}
|