Ignore:
File:
1 edited

Legend:

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

    r1883 r2081  
    173173    { return maximumTries_;}
    174174
    175     /// Get switches (for debug)
     175    /// Get switches
    176176    inline int switches() const {
    177177        return switches_;
     178    }
     179    /// Set switches (for copying from virgin state)
     180    inline void setSwitches(int value) {
     181        switches_ = value;
    178182    }
    179183    /// Get whether the cut generator should be called in the normal place
     
    347351        switches_ &= ~4096;
    348352        switches_ |= yesNo ? 4096 : 0;
     353    }
     354    /// Whether needs refresh on copy
     355    inline bool needsRefresh() const {
     356        return (switches_&8192) != 0;
     357    }
     358    /// Set whether needs refresh on copy
     359    inline void setNeedsRefresh(bool yesNo) {
     360        switches_ &= ~8192;
     361        switches_ |= yesNo ? 8192 : 0;
    349362    }
    350363    /// Number of cuts generated at root
Note: See TracChangeset for help on using the changeset viewer.