Cbc  2.10.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcCompare.hpp
Go to the documentation of this file.
1 /* $Id: CbcCompare.hpp 2465 2019-01-03 19:26:52Z unxusr $ */
2 // Copyright (C) 2002, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef CbcCompare_H
7 #define CbcCompare_H
8 
9 class CbcCompareBase;
10 
11 class CbcCompare {
12 public:
14  // Default Constructor
16  {
17  test_ = NULL;
18  }
19 
20  virtual ~CbcCompare() {}
21 
22  bool operator()(CbcNode *x, CbcNode *y)
23  {
24  return test_->test(x, y);
25  }
27  {
28  return test_->test(x, y);
29  }
31  inline bool alternateTest(CbcNode *x, CbcNode *y)
32  {
33  return test_->alternateTest(x, y);
34  }
35 
38  {
39  return test_;
40  }
41 };
42 
43 #endif
44 
45 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
46 */
virtual bool test(CbcNode *, CbcNode *)
This is test function.
virtual ~CbcCompare()
Definition: CbcCompare.hpp:20
CbcCompareBase * test_
Definition: CbcCompare.hpp:13
bool compareNodes(CbcNode *x, CbcNode *y)
Definition: CbcCompare.hpp:26
CbcCompareBase * comparisonObject() const
return comparison object
Definition: CbcCompare.hpp:37
Information required while the node is live.
Definition: CbcNode.hpp:49
bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
Definition: CbcCompare.hpp:31
bool operator()(CbcNode *x, CbcNode *y)
Definition: CbcCompare.hpp:22
virtual bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.