Change dependences
[satune.git] / src / AST / order.h
index 0a589a59e20330aaa4f3263b316b3c947a29ccad..ea2de5eea72a50e19330401313a21cacbb1b9747 100644 (file)
@@ -4,14 +4,26 @@
 #include "mymemory.h"
 #include "structs.h"
 #include "ops.h"
-struct Order {
+#include "orderencoding.h"
+#include "boolean.h"
+#include "orderpair.h"
+
+class Order {
+public:
+       Order(OrderType type, Set *set);
+       ~Order();
        OrderType type;
-       Set * set;
-       VectorBoolean* constraints;
+       Set *set;
+       HashTableOrderPair *orderPairTable;
+       OrderGraph *graph;
+       Order *clone(CSolver *solver, CloneMap *map);
+       Vector<BooleanOrder *> constraints;
+       OrderEncoding order;
+       void initializeOrderHashTable();
+       void initializeOrderElementsHashTable();
+       void addOrderConstraint(BooleanOrder *constraint);
+       void setOrderEncodingType(OrderEncodingType type);
+       CMEMALLOC;
 };
 
-Order* allocOrder(OrderType type, Set * set);
-Boolean* getOrderConstraint(Order* order,uint64_t first, uint64_t second);
-void deleteOrder(Order* order);
-
 #endif