SDL2lazy
Main Page
Classes
Files
File List
File Members
include
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
15
class
SlFormulaItem
16
{
17
public
:
20
SlFormulaItem
(){}
23
SlFormulaItem
(
char
c);
26
SlFormulaItem
(
double
value) ;
29
~SlFormulaItem
(){}
33
SlFormulaItem
operator+
(
const
SlFormulaItem
& rhs);
37
SlFormulaItem
operator-
(
const
SlFormulaItem
& rhs);
41
SlFormulaItem
operator*
(
const
SlFormulaItem
& rhs);
45
SlFormulaItem
operator/
(
const
SlFormulaItem
& rhs);
48
std::string
print
();
51
char
what
;
54
int
precedence
;
57
double
data
= 0;
58
};
59
60
61
#endif
/* SLFORMULAITEM_H */
SlFormulaItem::data
double data
Definition:
SlFormulaItem.h:57
SlFormulaItem::~SlFormulaItem
~SlFormulaItem()
Definition:
SlFormulaItem.h:29
SlFormulaItem::print
std::string print()
Definition:
SlFormulaItem.cc:96
SlFormulaItem
Definition:
SlFormulaItem.h:15
SlFormulaItem::operator-
SlFormulaItem operator-(const SlFormulaItem &rhs)
Definition:
SlFormulaItem.cc:60
SlFormulaItem::operator+
SlFormulaItem operator+(const SlFormulaItem &rhs)
Definition:
SlFormulaItem.cc:48
SlFormulaItem::operator*
SlFormulaItem operator*(const SlFormulaItem &rhs)
Definition:
SlFormulaItem.cc:72
SlFormulaItem::operator/
SlFormulaItem operator/(const SlFormulaItem &rhs)
Definition:
SlFormulaItem.cc:84
SlFormulaItem::precedence
int precedence
Definition:
SlFormulaItem.h:54
SlFormulaItem::SlFormulaItem
SlFormulaItem()
Definition:
SlFormulaItem.h:20
SlFormulaItem::what
char what
Definition:
SlFormulaItem.h:51
Generated by
1.8.9.1