-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwolvalue.h
57 lines (40 loc) · 997 Bytes
/
wolvalue.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef WOLVALUE_H_INCLUDED
#define WOLVALUE_H_INCLUDED
#include<iostream>
#include "common.h"
namespace wolver
{
using namespace std;
class WolValue;
class WolValue {
friend class WolEvalFactory;
public: //Types
enum WolValueType {
WOL_VALUE_BOOL_TYPE,
WOL_VALUE_CONST_TYPE,
WOL_VALUE_NO_CONST_TYPE
};
enum WolConstType {
WOL_SPECIAL_CONST_ZERO = 0,
WOL_SPECIAL_CONST_ONE = 1,
WOL_SPECIAL_CONST_ONES = 2,
WOL_SPECIAL_CONST_ONE_ONES = 3,
WOL_SPECIAL_CONST_NONE = 4
};
public:
WolValue() {}
virtual ~WolValue() {}
public: // functions
virtual void print() = 0;
virtual std::string getStringRep() = 0;
virtual bool isConst() = 0;
virtual bool isSingleTon() = 0;
virtual WolConstType getConstType() = 0;
virtual WolValueSptr getNotValue() = 0;
virtual WolValueType getType() = 0;
virtual WolValueSptr getRandomValue() = 0;
virtual bool containsOne() = 0;
private: //data
};
}
#endif