lemon/lp_base.h
changeset 2311 2c17006ec9c3
parent 2303 005b3f927287
child 2312 07e46cbb7d85
equal deleted inserted replaced
37:8c74ecd9886a 38:696585ab305a
   204       bool operator!=(Col c) const  {return id!=c.id;}
   204       bool operator!=(Col c) const  {return id!=c.id;}
   205     };
   205     };
   206 
   206 
   207     class ColIt : public Col {
   207     class ColIt : public Col {
   208       LpSolverBase *_lp;
   208       LpSolverBase *_lp;
       
   209     public:
   209       ColIt() {}
   210       ColIt() {}
   210       ColIt(LpSolverBase &lp) : _lp(&lp)
   211       ColIt(LpSolverBase &lp) : _lp(&lp)
   211       {
   212       {
   212 	id = _lp->cols.cross.empty()?-1:
   213 	id = _lp->cols.cross.empty()?-1:
   213 	  _lp->cols.fixId(_lp->cols.firstIndex());
   214 	  _lp->cols.fixId(_lp->cols.firstIndex());