CbcCompare.hpp
Go to the documentation of this file.
1 /* $Id: CbcCompare.hpp 1286 2009-11-09 23:33:07Z EdwinStraver $ */
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 #ifndef CbcCompare_H
5 #define CbcCompare_H
6 
7 class CbcCompareBase;
8 
9 class CbcCompare {
10 public:
12  // Default Constructor
14  test_ = NULL;
15  }
16 
17  virtual ~CbcCompare() {}
18 
19  bool operator() (CbcNode * x, CbcNode * y) {
20  return test_->test(x, y);
21  }
22  bool compareNodes (CbcNode * x, CbcNode * y) {
23  return test_->test(x, y);
24  }
26  inline bool alternateTest (CbcNode * x, CbcNode * y) {
27  return test_->alternateTest(x, y);
28  }
29 
31  inline CbcCompareBase * comparisonObject() const {
32  return test_;
33  }
34 };
35 
36 #endif
37