11 TunableSetting(VarType type, TunableParam param);
12 TunableSetting(VarType type1, VarType type2, TunableParam param);
13 TunableSetting(TunableParam param);
14 TunableSetting(TunableSetting *ts);
15 void setDecision(int _low, int _high, int _default, int _selection);
17 friend std ::ostream &operator<< (std::ostream &stream, const TunableSetting &matrix);
28 friend unsigned int tunableSettingHash(TunableSetting *setting);
29 friend bool tunableSettingEquals(TunableSetting *setting1, TunableSetting *setting2);
30 friend class SearchTuner;
31 friend class SerializeTuner;
34 class SearchTuner : public Tuner {
37 SearchTuner(const char *filename);
39 virtual int getTunable(TunableParam param, TunableDesc *descriptor);
40 int getVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor);
41 virtual int getVarTunable(VarType vartype1, VarType vartype2, TunableParam param, TunableDesc *descriptor);
42 void setTunable(TunableParam param, TunableDesc *descriptor, uint value);
43 void setVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor, uint value);
44 void setVarTunable(VarType vartype1, VarType vartype2, TunableParam param, TunableDesc *descriptor, uint value);
45 SearchTuner *copyUsed();
46 bool isSubTunerof(SearchTuner *newTuner);
48 uint getSize() { return usedSettings.getSize();}
51 void serialize(const char *file);
52 void serializeUsed(const char *file);
53 void addUsed(const char *file);
54 bool equalUsed(SearchTuner *tuner);
57 /** Used Settings keeps track of settings that were actually used by
58 the example. Mutating settings may cause the Constraint Compiler
59 not to query other settings.*/
60 HashsetTunableSetting usedSettings;
61 /** Settings contains all settings. */
62 HashsetTunableSetting settings;