SDL2lazy
SlFormulaItem.h
Go to the documentation of this file.
1 // part of SDL2lazy
2 // author: Ulrike Hager
3 
8 #ifndef SLFORMULAITEM_H
9 #define SLFORMULAITEM_H
10 
11 #include <string>
12 
16 {
17  public:
23  SlFormulaItem(char c);
26  SlFormulaItem(double value) ;
48  std::string print();
51  char what;
57  double data = 0;
58 };
59 
60 
61 #endif /* SLFORMULAITEM_H */
double data
Definition: SlFormulaItem.h:57
~SlFormulaItem()
Definition: SlFormulaItem.h:29
std::string print()
Definition: SlFormulaItem.cc:96
Definition: SlFormulaItem.h:15
SlFormulaItem operator-(const SlFormulaItem &rhs)
Definition: SlFormulaItem.cc:60
SlFormulaItem operator+(const SlFormulaItem &rhs)
Definition: SlFormulaItem.cc:48
SlFormulaItem operator*(const SlFormulaItem &rhs)
Definition: SlFormulaItem.cc:72
SlFormulaItem operator/(const SlFormulaItem &rhs)
Definition: SlFormulaItem.cc:84
int precedence
Definition: SlFormulaItem.h:54
SlFormulaItem()
Definition: SlFormulaItem.h:20
char what
Definition: SlFormulaItem.h:51