summarylogtreecommitdiffstats
path: root/variable.h
diff options
context:
space:
mode:
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/variable.h b/variable.h
new file mode 100644
index 000000000000..9a531a58a388
--- /dev/null
+++ b/variable.h
@@ -0,0 +1,22 @@
+#ifndef _VARIABLE_H_
+#define _VARIABLE_H_
+
+#include "destructive_reasoning.h"
+
+class Variable
+{
+ public:
+ Variable(std::string n, double v, bool isConstant) : name(n), value(v), constant(isConstant) {};
+ std::string getName();
+ double getValue();
+ inline bool isConstant() { return constant; };
+
+ void setValue(double val);
+
+ private:
+ std::string name;
+ double value;
+ bool constant;
+};
+
+#endif