summarylogtreecommitdiffstats
path: root/variable.h
blob: 9a531a58a38812c2a032d75622482619ddacb44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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