5000674059a598542930c44a10a9da6f4701f73b
[satune.git] / src / set.h
1 /*
2  * File:   set.h
3  * Author: hamed
4  *
5  * Created on June 13, 2017, 3:01 PM
6  */
7
8 #ifndef SET_H
9 #define SET_H
10
11 #include "classlist.h"
12 #include "structs.h"
13 #include "mymemory.h"
14
15 struct Set {
16         VarType type;
17         bool isRange;
18         uint64_t low, high;
19         VectorInt * members;
20 };
21
22
23 Set *allocSet(VarType t, uint64_t * elements, uint num);
24 Set     * allocSetRange(VarType t, uint64_t lowrange, uint64_t highrange);
25 void deleteSet(Set *set);
26 #endif/* SET_H */
27