Ignore:
Timestamp:
Jun 26, 2007 5:59:58 AM (12 years ago)
Author:
forrest
Message:

update branches/devel for threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcFathom.cpp

    r310 r642  
    99#include <cfloat>
    1010
    11 #include "OsiSolverInterface.hpp"
     11#ifdef COIN_HAS_CLP
     12#include "OsiClpSolverInterface.hpp"
     13#endif
    1214#include "CbcModel.hpp"
    1315#include "CbcMessage.hpp"
     
    4547  model_ = model;
    4648}
     49#ifdef COIN_HAS_CLP
     50
     51//#############################################################################
     52// Constructors, destructors clone and assignment
     53//#############################################################################
     54
     55//-------------------------------------------------------------------
     56// Default Constructor
     57//-------------------------------------------------------------------
     58CbcOsiSolver::CbcOsiSolver ()
     59  : OsiClpSolverInterface()
     60{
     61  cbcModel_ = NULL;
     62}
     63//-------------------------------------------------------------------
     64// Clone
     65//-------------------------------------------------------------------
     66OsiSolverInterface *
     67CbcOsiSolver::clone(bool copyData) const
     68{
     69  assert (copyData);
     70  return new CbcOsiSolver(*this);
     71}
     72
     73
     74//-------------------------------------------------------------------
     75// Copy constructor
     76//-------------------------------------------------------------------
     77CbcOsiSolver::CbcOsiSolver (
     78                  const CbcOsiSolver & rhs)
     79  : OsiClpSolverInterface(rhs)
     80{
     81  cbcModel_ = rhs.cbcModel_;
     82}
     83
     84//-------------------------------------------------------------------
     85// Destructor
     86//-------------------------------------------------------------------
     87CbcOsiSolver::~CbcOsiSolver ()
     88{
     89}
     90
     91//-------------------------------------------------------------------
     92// Assignment operator
     93//-------------------------------------------------------------------
     94CbcOsiSolver &
     95CbcOsiSolver::operator=(const CbcOsiSolver& rhs)
     96{
     97  if (this != &rhs) {
     98    OsiClpSolverInterface::operator=(rhs);
     99    cbcModel_ = rhs.cbcModel_;
     100  }
     101  return *this;
     102}
     103#endif
Note: See TracChangeset for help on using the changeset viewer.