mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[poincare] Remove header of class function
Change-Id: I2aaa523ddc0fa90de2242f957893cf3da8e7779e
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include <poincare/floor.h>
|
||||
#include <poincare/frac_part.h>
|
||||
#include <poincare/fraction.h>
|
||||
#include <poincare/function.h>
|
||||
#include <poincare/expression_matrix.h>
|
||||
#include <poincare/global_context.h>
|
||||
#include <poincare/great_common_divisor.h>
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
#ifndef POINCARE_FUNCTION_H
|
||||
#define POINCARE_FUNCTION_H
|
||||
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/list_data.h>
|
||||
#include <poincare/complex.h>
|
||||
#include <poincare/complex_matrix.h>
|
||||
#include <math.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
/* The Function class represents the built-in math functions such as cos, sin,
|
||||
* tan, log, etc... */
|
||||
|
||||
class Function : public Expression {
|
||||
public:
|
||||
Function(const char * name, int requiredNumberOfArguments = 1);
|
||||
~Function();
|
||||
Function(const Function& other) = delete;
|
||||
Function(Function&& other) = delete;
|
||||
Function& operator=(const Function& other) = delete;
|
||||
Function& operator=(Function&& other) = delete;
|
||||
void setArgument(Expression ** args, int numberOfArguments, bool clone = true);
|
||||
void setArgument(ListData * listData, bool clone = true);
|
||||
bool hasValidNumberOfArguments() const override;
|
||||
const Expression * operand(int i) const override;
|
||||
int numberOfOperands() const override;
|
||||
Expression * clone() const override;
|
||||
protected:
|
||||
virtual Complex<float> computeComplex(const Complex<float> c, AngleUnit angleUnit) const {
|
||||
return Complex<float>::Float(NAN);
|
||||
}
|
||||
virtual Complex<double> computeComplex(const Complex<double> c, AngleUnit angleUnit) const {
|
||||
return Complex<double>::Float(NAN);
|
||||
}
|
||||
virtual Evaluation<float> * privateEvaluate(SinglePrecision p, Context& context, AngleUnit angleUnit) const override { return templatedEvaluate<float>(context, angleUnit); }
|
||||
virtual Evaluation<double> * privateEvaluate(DoublePrecision p, Context& context, AngleUnit angleUnit) const override { return templatedEvaluate<double>(context, angleUnit); }
|
||||
template<typename T> Evaluation<T> * templatedEvaluate(Context& context, AngleUnit angleUnit) const;
|
||||
ExpressionLayout * privateCreateLayout(FloatDisplayMode floatDisplayMode, ComplexFormat complexFormat) const override;
|
||||
void build(Expression ** args, int numberOfArguments, bool clone);
|
||||
void clean();
|
||||
Expression ** m_args;
|
||||
int m_numberOfArguments;
|
||||
int m_requiredNumberOfArguments;
|
||||
const char * m_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user