Add the Function and trig functions classes and layout.

We create an abstraction for functions with the function class.

Change-Id: Ia52f38da2ab3fb6781ad77c1b909676c53a4f424
This commit is contained in:
Felix Raimundo
2016-03-24 12:03:36 +01:00
parent ed95a3c564
commit d105236da9
16 changed files with 218 additions and 4 deletions

10
poincare/src/function.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include <poincare/function.h>
#include "layout/function_layout.h"
Function::~Function() {
delete m_arg;
}
ExpressionLayout * Function::createLayout(ExpressionLayout * parent) {
return new FunctionLayout(parent, m_function_name, m_arg);
}