Ignore:
Timestamp:
Dec 10, 2009 10:17:35 AM (10 years ago)
Author:
caphillSNL
Message:

Start at adding documentation, removing magic numbers, removing dead code, etc.
Added an enum for type in classes derived from CbCBranchingObject. It's safer,
handier for debugging (inspection in a debugger), and clearly shows the relationship
between the dozen or so special numbers. Numbers are the same as they were before to
ensure no changes in correctness.

Location:
branches/sandbox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/sandbox

    • Property svn:externals
      •  

        old new  
        55ThirdParty/Glpk   https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/stable/1.5
        66Data/Sample       https://projects.coin-or.org/svn/Data/stable/1.0/Sample
         7Data/Miplib       https://projects.coin-or.org/svn/Data/stable/1.0/miplib3
        78CoinUtils         https://projects.coin-or.org/svn/CoinUtils/stable/2.6/CoinUtils
        89Cgl               https://projects.coin-or.org/svn/Cgl/branches/sandbox/Cgl
  • branches/sandbox/Cbc/src/CbcGeneralDepth.hpp

    r1357 r1389  
    135135    }
    136136    /** Return the type (an integer identifier) of \c this */
    137     virtual int type() const {
    138         return 108;
     137    virtual CbcBranchObjType type() const {
     138        return GeneralDepthBranchObj;
    139139    }
    140140
     
    234234    virtual void print();
    235235    /** Return the type (an integer identifier) of \c this */
    236     virtual int type() const {
    237         return 110;
     236    virtual CbcBranchObjType type() const {
     237        return OneGeneralBranchingObj;
    238238    }
    239239
Note: See TracChangeset for help on using the changeset viewer.