| 1 | /* $Id: ClpPdcoBase.cpp 1665 2011-01-04 17:55:54Z lou $ */ |
| 2 | // Copyright (C) 2003, 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 | #ifdef COIN_DO_PDCO |
| 7 | |
| 8 | #include "CoinPragma.hpp" |
| 9 | |
| 10 | #include <iostream> |
| 11 | |
| 12 | #include "ClpPdcoBase.hpp" |
| 13 | #include "ClpPdco.hpp" |
| 14 | |
| 15 | //############################################################################# |
| 16 | // Constructors / Destructor / Assignment |
| 17 | //############################################################################# |
| 18 | |
| 19 | //------------------------------------------------------------------- |
| 20 | // Default Constructor |
| 21 | //------------------------------------------------------------------- |
| 22 | ClpPdcoBase::ClpPdcoBase () : |
| 23 | d1_(0.0), |
| 24 | d2_(0.0), |
| 25 | type_(-1) |
| 26 | { |
| 27 | |
| 28 | } |
| 29 | |
| 30 | //------------------------------------------------------------------- |
| 31 | // Copy constructor |
| 32 | //------------------------------------------------------------------- |
| 33 | ClpPdcoBase::ClpPdcoBase (const ClpPdcoBase & source) : |
| 34 | d1_(source.d1_), |
| 35 | d2_(source.d2_), |
| 36 | type_(source.type_) |
| 37 | { |
| 38 | |
| 39 | } |
| 40 | |
| 41 | //------------------------------------------------------------------- |
| 42 | // Destructor |
| 43 | //------------------------------------------------------------------- |
| 44 | ClpPdcoBase::~ClpPdcoBase () |
| 45 | { |
| 46 | |
| 47 | } |
| 48 | |
| 49 | //---------------------------------------------------------------- |
| 50 | // Assignment operator |
| 51 | //------------------------------------------------------------------- |
| 52 | ClpPdcoBase & |
| 53 | ClpPdcoBase::operator=(const ClpPdcoBase& rhs) |
| 54 | { |
| 55 | if (this != &rhs) { |
| 56 | d1_ = rhs.d1_; |
| 57 | d2_ = rhs.d2_; |
| 58 | type_ = rhs.type_; |
| 59 | } |
| 60 | return *this; |
| 61 | } |
| 62 | #endif |
| 63 | |