coco::bound_undelta Class Reference
[Deltas]

The bound undelta class for undoing changes to the node bounds in a model. More...

#include <bound_delta.h>

Inheritance diagram for coco::bound_undelta:

Inheritance graph
[legend]
Collaboration diagram for coco::bound_undelta:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 bound_undelta (const std::vector< unsigned int > &__i, const std::vector< interval > &__b, double _og, double _olv)
 bound_undelta (const std::vector< unsigned int > &__i, double _og, double _olv)
 bound_undelta (const bound_undelta &__d)
bound_undeltanew_copy () const
void destroy_copy (undelta_base *__d) const
bool unapply (work_node &_x, const delta_id &_did) const
undelta make_undelta ()
virtual bool unapply3 (work_node &_x, const work_node &_y, const delta_id &_d) const

Public Attributes

std::vector< unsigned int > indices
std::vector< intervalold_f_bounds
double old_gain
double old_log_vol

Friends

class bound_delta


Detailed Description

This class is used to specify undo information for changes to the node bounds within a model. This class undoes the apply of a bound_delta.

Definition at line 41 of file bound_delta.h.


Constructor & Destructor Documentation

coco::bound_undelta::bound_undelta ( const std::vector< unsigned int > &  __i,
const std::vector< interval > &  __b,
double  _og,
double  _olv 
) [inline]

Constructor, setting indices to __i, the old_f_bounds to __b, the old_gain to _og, and the old_log_vol to _olv.

Definition at line 56 of file bound_delta.h.

coco::bound_undelta::bound_undelta ( const std::vector< unsigned int > &  __i,
double  _og,
double  _olv 
) [inline]

Constructor, setting indices to __i, the old_gain to _og, the old_log_vol to _olv, and leaving old_f_bounds empty.

Definition at line 64 of file bound_delta.h.

coco::bound_undelta::bound_undelta ( const bound_undelta __d  )  [inline]

Standard Copy Constructor

Definition at line 70 of file bound_delta.h.


Member Function Documentation

void coco::bound_undelta::destroy_copy ( undelta_base __d  )  const [inline]

Clone Destructor

Definition at line 84 of file bound_delta.h.

undelta coco::undelta_base::make_undelta (  )  [inline, inherited]

Construct an undelta from this undelta_base.

Definition at line 283 of file api_deltabase.h.

bound_undelta* coco::bound_undelta::new_copy (  )  const [inline, virtual]

Clone Operation

Reimplemented from coco::undelta_base.

Definition at line 82 of file bound_delta.h.

bool coco::bound_undelta::unapply ( work_node _x,
const delta_id _did 
) const [virtual]

Undo the bound_delta with delta_id _i in work node _x

Reimplemented from coco::undelta_base.

Definition at line 74 of file bound_delta.cc.

bool coco::undelta_base::unapply3 ( work_node _x,
const work_node _y,
const delta_id _d 
) const [inline, virtual, inherited]

Undo the delta with delta_id _d in work node _x, constructing in the process work_node _y, without changing _x. This method should be overloaded in the specializations of this class for maximal efficiency, but it need not since a standard procedure is available, which uses the work_node copy constructur and the unapply method.

Definition at line 94 of file api_delta.h.


Friends And Related Function Documentation

friend class bound_delta [friend]

Definition at line 89 of file bound_delta.h.


Member Data Documentation

std::vector<unsigned int> coco::bound_undelta::indices

This variable holds the indices of the changed nodes. If all variables are being updated this vector is empty.

Definition at line 46 of file bound_delta.h.

This variable holds the old bounds of the changed nodes.

Definition at line 49 of file bound_delta.h.

the gain in the work_node before the application

Definition at line 51 of file bound_delta.h.

the old log-Volume of the work_node

Definition at line 52 of file bound_delta.h.


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

Generated on Tue Feb 9 14:47:53 2010 for COCONUT API by  doxygen 1.5.8