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 
bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
Definition: CbcCompare.hpp:26
bool compareNodes(CbcNode *x, CbcNode *y)
Definition: CbcCompare.hpp:22
virtual bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
bool operator()(CbcNode *x, CbcNode *y)
Definition: CbcCompare.hpp:19
CbcCompareBase * comparisonObject() const
return comparison object
Definition: CbcCompare.hpp:31
CbcCompareBase * test_
Definition: CbcCompare.hpp:11
virtual ~CbcCompare()
Definition: CbcCompare.hpp:17
Information required while the node is live.
Definition: CbcNode.hpp:47
virtual bool test(CbcNode *, CbcNode *)
This is test function.