#include <bound_delta.h>
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_undelta * | new_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< interval > | old_f_bounds |
double | old_gain |
double | old_log_vol |
Friends | |
class | bound_delta |
Definition at line 41 of file bound_delta.h.
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.
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] |
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.
friend class bound_delta [friend] |
Definition at line 89 of file bound_delta.h.
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.
std::vector<interval> coco::bound_undelta::old_f_bounds |
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.