bande::UndoColAction< f > Class Template Reference

Undo information for a column bound change. More...

#include <LinearProgram.hh>

Inheritance diagram for bande::UndoColAction< f >:
Inheritance graph
[legend]
Collaboration diagram for bande::UndoColAction< f >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UndoColAction (OsiSolverInterface *solver, int col, double val)
 Constructs an undo information set.
void undo ()
 Undo the operation as recorded.

Protected Attributes

OsiSolverInterfacesolver
 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.

Detailed Description

template<void(OsiSolverInterface::*)(int, double) f>
class bande::UndoColAction< f >

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.

Parameters:
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.


Constructor & Destructor Documentation

template<void(OsiSolverInterface::*)(int, double) f>
bande::UndoColAction< f >::UndoColAction ( OsiSolverInterface solver,
int  col,
double  val 
) [inline]

Constructs an undo information set.

Parameters:
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.


Member Function Documentation

template<void(OsiSolverInterface::*)(int, double) f>
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.


The documentation for this class was generated from the following file:

Generated on Fri Aug 21 08:17:19 2009 for bande by  doxygen 1.6.0