1// Copyright (C) 2000, International Business Machines
2// Corporation and others. All Rights Reserved.
3// This code is licensed under the terms of the Eclipse Public License (EPL).
4
5#if defined(_MSC_VER)
6// Turn off compiler warning about long names
7# pragma warning(disable:4786)
8#endif
9
10#include "OsiCut.hpp"
11
12//-------------------------------------------------------------------
13// Default Constructor
14//-------------------------------------------------------------------
15OsiCut::OsiCut ()
16:
17 effectiveness_(0.),
18 globallyValid_(0)
19//timesUsed_(0),
20//timesTested_(0)
21{
22 // nothing to do here
23}
24//-------------------------------------------------------------------
25// Copy constructor
26//-------------------------------------------------------------------
27OsiCut::OsiCut (
28 const OsiCut & source)
29:
30 effectiveness_(source.effectiveness_),
31 globallyValid_(source.globallyValid_)
32//timesUsed_(source.timesUsed_),
33//timesTested_(source.timesTested_)
34{
35 // nothing to do here
36}
37
38#if 0
39//----------------------------------------------------------------
40// Clone
41//----------------------------------------------------------------
42OsiCut * OsiCut::clone() const
43{ return (new OsiCut(*this));}
44#endif
45
46//-------------------------------------------------------------------
47// Destructor
48//-------------------------------------------------------------------
49OsiCut::~OsiCut ()
50{
51 // nothing to do here
52}
53
54//----------------------------------------------------------------
55// Assignment operator
56//-------------------------------------------------------------------
57OsiCut &
58OsiCut::operator=(const OsiCut& rhs)
59{
60 if (this != &rhs) {
61 effectiveness_=rhs.effectiveness_;
62 globallyValid_ = rhs.globallyValid_;
63 //timesUsed_=rhs.timesUsed_;
64 //timesTested_=rhs.timesTested_;
65 }
66 return *this;
67}
68