-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.h
More file actions
25 lines (21 loc) · 765 Bytes
/
Copy pathvariable.h
File metadata and controls
25 lines (21 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef CALCUDOKUSOLVER_VARIABLE_H
#define CALCUDOKUSOLVER_VARIABLE_H
#include <string>
#include <memory>
using std::string;
using std::shared_ptr;
const int MAX_VAL = 20;
const int MAX_NAME_CHARS = 10;
class Variable {
public:
const string name;
bool valueSet[MAX_VAL] = {true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true};
int value;
int values;
explicit Variable(const string && name = "", int values = MAX_VAL, int val=-1)
: name(name), values(values), value(val) {}
Variable(const Variable & var);
explicit Variable(shared_ptr<Variable> var);
bool operator==(const Variable &v);
};
#endif //CALCUDOKUSOLVER_VARIABLE_H