projects
/
satune.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert Hashtable
[satune.git]
/
src
/
set.h
diff --git
a/src/set.h
b/src/set.h
index 87992082357fe0259fe6719955ec81b02f7caa80..dee406676f296c52c5ab0751a07d218550cefbe3 100644
(file)
--- a/
src/set.h
+++ b/
src/set.h
@@
-9,23
+9,19
@@
#define SET_H
#include "classlist.h"
#define SET_H
#include "classlist.h"
-#include "st
l-model
.h"
+#include "st
ructs
.h"
#include "mymemory.h"
#include "mymemory.h"
-class Set {
-public:
- Set(VarType t, uint64_t * elements, int num);
- Set(VarType t, uint64_t lowrange, uint64_t highrange);
- ~Set();
-
- MEMALLOC;
-private:
+struct Set {
VarType type;
bool isRange;
uint64_t low, high;
VarType type;
bool isRange;
uint64_t low, high;
-
-protected:
- ModelVector<uint64_t> *members;
+ VectorInt * members;
};
};
+
+
+Set *allocSet(VarType t, uint64_t * elements, uint num);
+Set * allocSetRange(VarType t, uint64_t lowrange, uint64_t highrange);
+void freeSet(Set *set);
#endif/* SET_H */
#endif/* SET_H */