27 #ifndef AlpsSearchStrategyBase_h_
28 #define AlpsSearchStrategyBase_h_
49 class AlpsSearchStrategy
63 virtual ~AlpsSearchStrategy() {}
70 virtual bool compare(T x, T y) = 0;
72 bool operator() (T x, T y) {
80 inline double getWeight()
const {
return weight_; }
81 inline void setWeight(
double nw) { weight_ = nw; }
98 int getType(){
return type_; }
101 void setType(
int t) { type_ = t; }
111 AlpsSearchStrategy<T>* strategy_;
115 AlpsCompare () : strategy_(0) {}
116 virtual ~AlpsCompare() {}
118 void setComareBase(AlpsSearchStrategy<T>* c) {
122 bool operator() (T x, T y) {
123 return strategy_->compare(x, y);