#ifndef TUNABLE_H
#define TUNABLE_H
#include "classlist.h"
-
+#include "common.h"
class Tuner {
public:
- Tuner();
+ virtual int getTunable(TunableParam param, TunableDesc *descriptor) {ASSERT(0); return 0;}
+ virtual int getVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor) {ASSERT(0); return 0;}
+ virtual ~Tuner() {}
+ CMEMALLOC;
+};
+
+class DefaultTuner : public Tuner {
+public:
+ DefaultTuner();
int getTunable(TunableParam param, TunableDesc *descriptor);
int getVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor);
- MEMALLOC;
+ CMEMALLOC;
};
+
+
class TunableDesc {
public:
TunableDesc(int _lowValue, int _highValue, int _defaultValue) : lowValue(_lowValue), highValue(_highValue), defaultValue(_defaultValue) {}
int lowValue;
int highValue;
int defaultValue;
- MEMALLOC;
+ CMEMALLOC;
};