Switch to vector class
[satune.git] / src / AST / mutableset.cc
index 19552f6cfa01359010cb1fbf77bd6c3ba75258b8..19f6dec8b3878a02126245be10f5a246ad4ec55b 100644 (file)
@@ -1,15 +1,8 @@
 #include "mutableset.h"
 
-MutableSet *allocMutableSet(VarType t) {
-       MutableSet *This = (MutableSet *)ourmalloc(sizeof(MutableSet));
-       This->type = t;
-       This->isRange = false;
-       This->low = 0;
-       This->high = 0;
-       This->members = allocDefVectorInt();
-       return This;
+MutableSet::MutableSet(VarType t) : Set(t) {
 }
 
-void addElementMSet(MutableSet *set, uint64_t element) {
-       pushVectorInt(set->members, element);
+void MutableSet::addElementMSet(uint64_t element) {
+       members->push(element);
 }