Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
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
9
class
CbcCompareBase
;
10
11
class
CbcCompare
{
12
public
:
13
CbcCompareBase
*
test_
;
14
// Default Constructor
15
CbcCompare
()
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
}
26
bool
compareNodes
(CbcNode *x, CbcNode *y)
27
{
28
return
test_
->test(x, y);
29
}
30
31
inline
bool
alternateTest
(CbcNode *x, CbcNode *y)
32
{
33
return
test_
->alternateTest(x, y);
34
}
35
37
inline
CbcCompareBase
*
comparisonObject
()
const
38
{
39
return
test_
;
40
}
41
};
42
43
#endif
44
45
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
46
*/
CbcCompareBase
Definition
CbcCompareBase.hpp:26
CbcCompare::operator()
bool operator()(CbcNode *x, CbcNode *y)
Definition
CbcCompare.hpp:22
CbcCompare::CbcCompare
CbcCompare()
Definition
CbcCompare.hpp:15
CbcCompare::test_
CbcCompareBase * test_
Definition
CbcCompare.hpp:13
CbcCompare::comparisonObject
CbcCompareBase * comparisonObject() const
return comparison object
Definition
CbcCompare.hpp:37
CbcCompare::compareNodes
bool compareNodes(CbcNode *x, CbcNode *y)
Definition
CbcCompare.hpp:26
CbcCompare::alternateTest
bool alternateTest(CbcNode *x, CbcNode *y)
This is alternate test function.
Definition
CbcCompare.hpp:31
CbcCompare::~CbcCompare
virtual ~CbcCompare()
Definition
CbcCompare.hpp:20
Generated by
1.17.0