#include "classlist.h"
-struct Tuner {
+class Tuner {
+public:
+ Tuner();
+ int getTunable(TunableParam param, TunableDesc *descriptor);
+ int getVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor);
+ MEMALLOC;
};
-struct TunableDesc {
+class TunableDesc {
+public:
+ TunableDesc(int _lowValue, int _highValue, int _defaultValue) : lowValue(_lowValue), highValue(_highValue), defaultValue(_defaultValue) {}
int lowValue;
int highValue;
int defaultValue;
+ MEMALLOC;
};
-Tuner * allocTuner();
-void deleteTuner(Tuner *This);
-int getTunable(Tuner This, TunableParam param, TunableDesc * descriptor);
-int getVarTunable(Tuner This, VarType vartype, TunableParam param, TunableDesc * descriptor);
+#define GETTUNABLE(This, param, descriptor) This->getTunable(param, descriptor)
+#define GETVARTUNABLE(This, vartype, param, descriptor) This->getTunable(param, descriptor)
-#define GETTUNABLE(This, param, descriptor) getTunable(This, param, descriptor);
-#define GETVARTUNABLE(This, vartype, param, descriptor) getTunable(This, param, descriptor);
+static TunableDesc onoff(0, 1, 1);
+static TunableDesc offon(0, 1, 0);
+enum Tunables {DECOMPOSEORDER, MUSTREACHGLOBAL, MUSTREACHLOCAL, MUSTREACHPRUNE, OPTIMIZEORDERSTRUCTURE, ORDERINTEGERENCODING};
+typedef enum Tunables Tunables;
#endif