Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

SbbCountRowCut.hpp

00001 // Copyright (C) 2002, International Business Machines
00002 // Corporation and others.  All Rights Reserved.
00003 #ifndef SbbCountRowCut_H
00004 #define SbbCountRowCut_H
00005 
00006 
00007 class OsiCuts;
00008 class OsiRowCut;
00009 class SbbNodeInfo;
00010 
00011 //#############################################################################
00032 class SbbCountRowCut : public OsiRowCut {
00033 
00034 public:
00035   
00038 
00040     SbbCountRowCut ();
00041 
00043     SbbCountRowCut ( const OsiRowCut &);  
00044 
00046     SbbCountRowCut(const OsiRowCut &, SbbNodeInfo *, int whichOne,
00047                    int whichGenerator=-1);  
00048 
00055     virtual ~SbbCountRowCut ();
00057 
00059   void increment(int change=1);
00060 
00062   int decrement(int change=1);
00063 
00071   void setInfo(SbbNodeInfo *, int whichOne);
00072 
00074   inline int numberPointingToThis()
00075   { return numberPointingToThis_;};
00076 
00078    int whichCutGenerator() const
00079   { return whichCutGenerator_;};
00080 
00081 #ifdef CHECK_CUT_COUNTS
00082   // Just for printing sanity checks
00083   int tempNumber_;
00084 #endif
00085 
00086 private:
00087 
00089   SbbCountRowCut(const SbbCountRowCut &);
00090   
00092   SbbCountRowCut & operator=(const SbbCountRowCut& rhs);
00093 
00095   SbbNodeInfo * owner_;
00096   
00099   int ownerCut_;
00100   
00102   int numberPointingToThis_;
00103 
00105   int whichCutGenerator_;
00106 
00107 };
00108 
00109 #endif

Generated on Wed Dec 3 14:36:19 2003 for Sbb by doxygen 1.3.5