Last change
on this file since 1525 was
1525,
checked in by mjs, 10 years ago
|
Formatted .cpp, .hpp, .c, .h files with "astyle -A4 -p". This matches the formatting used in the grand CBC reorganization.
|
-
Property svn:keywords set to
Id
|
File size:
1.5 KB
|
Line | |
---|
1 | /* $Id: ClpPdcoBase.cpp 1525 2010-02-26 17:27:59Z mjs $ */ |
---|
2 | // Copyright (C) 2003, International Business Machines |
---|
3 | // Corporation and others. All Rights Reserved. |
---|
4 | #ifdef COIN_DO_PDCO |
---|
5 | |
---|
6 | #include "CoinPragma.hpp" |
---|
7 | |
---|
8 | #include <iostream> |
---|
9 | |
---|
10 | #include "ClpPdcoBase.hpp" |
---|
11 | #include "ClpPdco.hpp" |
---|
12 | |
---|
13 | //############################################################################# |
---|
14 | // Constructors / Destructor / Assignment |
---|
15 | //############################################################################# |
---|
16 | |
---|
17 | //------------------------------------------------------------------- |
---|
18 | // Default Constructor |
---|
19 | //------------------------------------------------------------------- |
---|
20 | ClpPdcoBase::ClpPdcoBase () : |
---|
21 | d1_(0.0), |
---|
22 | d2_(0.0), |
---|
23 | type_(-1) |
---|
24 | { |
---|
25 | |
---|
26 | } |
---|
27 | |
---|
28 | //------------------------------------------------------------------- |
---|
29 | // Copy constructor |
---|
30 | //------------------------------------------------------------------- |
---|
31 | ClpPdcoBase::ClpPdcoBase (const ClpPdcoBase & source) : |
---|
32 | d1_(source.d1_), |
---|
33 | d2_(source.d2_), |
---|
34 | type_(source.type_) |
---|
35 | { |
---|
36 | |
---|
37 | } |
---|
38 | |
---|
39 | //------------------------------------------------------------------- |
---|
40 | // Destructor |
---|
41 | //------------------------------------------------------------------- |
---|
42 | ClpPdcoBase::~ClpPdcoBase () |
---|
43 | { |
---|
44 | |
---|
45 | } |
---|
46 | |
---|
47 | //---------------------------------------------------------------- |
---|
48 | // Assignment operator |
---|
49 | //------------------------------------------------------------------- |
---|
50 | ClpPdcoBase & |
---|
51 | ClpPdcoBase::operator=(const ClpPdcoBase& rhs) |
---|
52 | { |
---|
53 | if (this != &rhs) { |
---|
54 | d1_ = rhs.d1_; |
---|
55 | d2_ = rhs.d2_; |
---|
56 | type_ = rhs.type_; |
---|
57 | } |
---|
58 | return *this; |
---|
59 | } |
---|
60 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.