Undo information for a column bound change. More...
#include <LinearProgram.hh>


Public Member Functions | |
| UndoColAction (OsiSolverInterface *solver, int col, double val) | |
| Constructs an undo information set. | |
| void | undo () |
| Undo the operation as recorded. | |
Protected Attributes | |
| OsiSolverInterface * | solver |
| The solver object that was be modified. | |
| int | col |
| The index of the column that was modified. | |
| double | val |
| The old value that shall be restored. | |
Undo information for a column bound change.
This template is parametrized by a pointer to a method of OsiSolverInterface that will accept a column index and a double value. When instantiating this template, this parameter should be the function to be used to undo the associated modification.
| f | a pointer to member to the function used to undo the change associated with this object. |
Definition at line 183 of file LinearProgram.hh.
| bande::UndoColAction< f >::UndoColAction | ( | OsiSolverInterface * | solver, | |
| int | col, | |||
| double | val | |||
| ) | [inline] |
Constructs an undo information set.
| solver | the solver object that will be modified. | |
| col | the column index of the column to be modified. | |
| val | the old value of the property, to be restired when undoing the modification. |
Definition at line 193 of file LinearProgram.hh.
| void bande::UndoColAction< f >::undo | ( | ) | [inline, virtual] |
Undo the operation as recorded.
This calls the method f on solver with the arguments col and val, as they were supplied to the constructor.
Implements bande::UndoBase.
Definition at line 201 of file LinearProgram.hh.
References bande::UndoColAction< f >::col, bande::UndoColAction< f >::solver, and bande::UndoColAction< f >::val.
1.6.0