Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
var
build
temp
tmp.S6JLgK91Yt
4.0-0-0
coinor-cbc
coinor-cbc-2.5.0
debian
tmp
usr
include
coin
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
:
11
CbcCompareBase
*
test_
;
12
// Default Constructor
13
CbcCompare
() {
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
Generated on Mon Mar 17 2014 19:08:45 by
1.8.1.2