Cbc 2.10.12
Loading...
Searching...
No Matches
CbcCompare.hpp
Go to the documentation of this file.
1/* $Id$ */
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
10
12public:
14 // Default Constructor
16 {
17 test_ = NULL;
18 }
19
20 virtual ~CbcCompare() {}
21
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 alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
virtual bool test(CbcNode *, CbcNode *)
This is test function.
bool operator()(CbcNode *x, CbcNode *y)
CbcCompareBase * test_
CbcCompareBase * comparisonObject() const
return comparison object
bool compareNodes(CbcNode *x, CbcNode *y)
bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
virtual ~CbcCompare()
Information required while the node is live.
Definition CbcNode.hpp:49