Adding a directed search based config for the tuner
[satune.git] / src / Tuner / searchtuner.h
index 1464849e520f2b905a1627071af6760f3f7ea23c..612f60e174f826b239911d817428d458fb92a223 100644 (file)
@@ -3,6 +3,9 @@
 #include "classlist.h"
 #include "tunable.h"
 #include "structs.h"
+#include <ostream>
+using namespace std;
+#define TUNEFILE "tune.conf"
 
 class TunableSetting {
 public:
@@ -12,6 +15,7 @@ public:
        TunableSetting(TunableSetting *ts);
        void setDecision(int _low, int _high, int _default, int _selection);
        void print();
+       friend std ::ostream &operator<< (std::ostream &stream, const TunableSetting &matrix);
        CMEMALLOC;
 private:
        bool hasVar;
@@ -45,6 +49,7 @@ public:
        uint getSize() { return usedSettings.getSize();}
        void print();
        void printUsed();
+       void serialize();
 
        CMEMALLOC;
 private:
@@ -54,5 +59,13 @@ private:
        HashsetTunableSetting usedSettings;
        /** Settings contains all settings. */
        HashsetTunableSetting settings;
+#ifdef STATICENCGEN
+        bool graphEncoding;
+        ElementEncodingType naiveEncoding;
+public:
+        int nextStaticTuner();
+#endif
 };
+
+
 #endif