#include "naiveencoder.h"
#include "constraint.h"
-enum ElementEncodingType {
- ELEM_UNASSIGNED, ONEHOT, UNARY, BINARYINDEX, ONEHOTBINARY, BINARYVAL
-};
-
-typedef enum ElementEncodingType ElementEncodingType;
-
class ElementEncoding {
- public:
+public:
ElementEncoding(Element *element);
ElementEncodingType getElementEncodingType() {return type;}
~ElementEncoding();
return -1;
}
-
+
ElementEncodingType type;
Element *element;
Edge *variables;/* List Variables Used To Encode Element */
};
};
uint numVars; /* Number of variables */
- MEMALLOC;
+ CMEMALLOC;
};