Numworks Epsilon  1.4.1
Graphing Calculator Operating System
expression_array.h
Go to the documentation of this file.
1 #ifndef POINCARE_EXPRESSION_ARRAY_H
2 #define POINCARE_EXPRESSION_ARRAY_H
3 
4 #include <poincare/expression.h>
5 
6 namespace Poincare {
7 
9 public:
10  ExpressionArray(const Expression * eL1 = nullptr, const Expression * eL2 = nullptr) :
11  m_data{eL1, eL2}
12  {}
13  const Expression * const * array() { return const_cast<const Expression * const *>(m_data); }
14 private:
15  const Expression * m_data[2];
16 };
17 
18 }
19 
20 #endif
const Expression *const * array()
ExpressionArray(const Expression *eL1=nullptr, const Expression *eL2=nullptr)