Changeset 419 for branches/devel


Ignore:
Timestamp:
Aug 9, 2006 3:37:17 AM (13 years ago)
Author:
forrest
Message:

possible bug in tree

Location:
branches/devel/Cbc/src
Files:
4 edited

Legend:

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

    r317 r419  
    4343// Return the top node of the heap
    4444CbcNode *
    45 CbcTree::top() {
     45CbcTree::top() const
     46{
    4647  return nodes_.front();
    4748}
     
    104105      // make impossible
    105106      nodes_[iBest]=NULL;
     107      printf("needs coding CbcTree::bestNode\n");
     108      abort();
    106109    }
    107110  } else if (best) {
  • branches/devel/Cbc/src/CbcTree.hpp

    r317 r419  
    3838
    3939  /// Return the top node of the heap
    40   virtual CbcNode * top();
     40  virtual CbcNode * top() const;
    4141
    4242  /// Add a node to the heap
  • branches/devel/Cbc/src/CbcTreeLocal.cpp

    r310 r419  
    328328// Return the top node of the heap
    329329CbcNode *
    330 CbcTreeLocal::top() {
     330CbcTreeLocal::top() const{
    331331#ifdef CBC_DEBUG
    332332  int smallest=9999999;
     
    388388// Test if empty - does work if so
    389389bool
    390 CbcTreeLocal::empty()  
     390CbcTreeLocal::empty()
    391391{
    392392  if (typeCuts_<0)
  • branches/devel/Cbc/src/CbcTreeLocal.hpp

    r186 r419  
    7373
    7474  /// Return the top node of the heap
    75   virtual CbcNode * top();
     75  virtual CbcNode * top() const;
    7676
    7777  /// Add a node to the heap
Note: See TracChangeset for help on using the changeset viewer.