Ignore:
Timestamp:
Dec 19, 2013 1:11:05 PM (6 years ago)
Author:
forrest
Message:

for threadsafe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcSolver.hpp

    r1899 r1998  
    1010
    1111    This class is currently an orphan. With the removal of all code flagged
    12     with the NEWS_STYLE_SOLVER, this class is never instantiated (and cannot
     12    with the NEW_STYLE_SOLVER, this class is never instantiated (and cannot
    1313    be instantiated). It is available to be coopted as a top-level object
    1414    wrapping the current CbcMain0 and CbcMain1, should that appear to be a
     
    251251    // Up pseudo costs
    252252    double * pseudoUp_;
    253 } CbcSolverUsefulData;
    254 
     253} CbcSolverUsefulData2;
     254
     255//#############################################################################
     256
     257/**
     258   The CbcSolver class was taken out at a 9/12/09 meeting
     259   This is a feeble replacement.
     260   At present everything is public
     261*/
     262class CbcSolverUsefulData {
     263
     264public:
     265    ///@name Constructors and destructors etc
     266    //@{
     267    /// Default Constructor
     268    CbcSolverUsefulData();
     269
     270    /** Copy constructor .
     271     */
     272    CbcSolverUsefulData(const CbcSolverUsefulData & rhs);
     273
     274    /// Assignment operator
     275    CbcSolverUsefulData & operator=(const CbcSolverUsefulData& rhs);
     276
     277    /// Destructor
     278    ~CbcSolverUsefulData ();
     279    //@}
     280
     281    ///@name Member data
     282    //@{
     283    // For time
     284    double totalTime_;
     285    // Parameters
     286    CbcOrClpParam parameters_[CBCMAXPARAMETERS];
     287    // Printing
     288    bool noPrinting_;
     289    // Whether to use signal handler
     290    bool useSignalHandler_;
     291    // Number of Parameters
     292    int numberParameters_;
     293    // Default pump tuning
     294    int initialPumpTune_;
     295    //@}
     296};
     297/// And this uses it
     298// When we want to load up CbcModel with options first
     299void CbcMain0 (CbcModel & babSolver,CbcSolverUsefulData & solverData);
     300int CbcMain1 (int argc, const char *argv[], CbcModel & babSolver, int (CbcModel * currentSolver, int whereFrom),CbcSolverUsefulData & solverData);
     301
     302//#############################################################################
    255303
    256304/*! \brief A class to allow the use of unknown user functionality
Note: See TracChangeset for help on using the changeset viewer.