Numworks Epsilon  1.4.1
Graphing Calculator Operating System
list_data.h
Go to the documentation of this file.
1 #ifndef POINCARE_LIST_DATA_H
2 #define POINCARE_LIST_DATA_H
3 
4 #include <poincare/expression.h>
5 
6 namespace Poincare {
7 
8 class ListData {
9 public:
11  ~ListData();
12  ListData(const ListData& other) = delete;
13  ListData(ListData&& other) = delete;
14  ListData& operator=(const ListData& other) = delete;
15  ListData& operator=(ListData&& other) = delete;
16  int numberOfOperands() const;
17  Expression ** operands() const;
18  const Expression * operand(int i) const;
20  void detachOperands();
21 private:
22  int m_numberOfOperands;
23  Expression ** m_operands;
24 };
25 
26 }
27 
28 #endif
ListData & operator=(const ListData &other)=delete
Expression ** operands() const
Definition: list_data.cpp:41
int numberOfOperands() const
Definition: list_data.cpp:37
void pushExpression(Expression *operand)
Definition: list_data.cpp:26
ListData(Expression *operand)
Definition: list_data.cpp:9
const Expression * operand(int i) const
Definition: list_data.cpp:45