#include <point_delta.h>
Public Types | |
typedef std::pair< std::string, dbt_row > | t_line |
typedef std::vector< t_line > | t_ctr |
Public Member Functions | |
point_delta () | |
point_delta (const dbt_row &__p) | |
point_delta (const point_delta &__d) | |
point_delta * | new_copy () const |
void | destroy_copy (delta_base *__d) const |
void | create_table (work_node &_x, vdbl::standard_table *&ptb, const std::string &__t) const |
bool | apply (work_node &_x, undelta_base *&_u, const delta_id &_did) const |
bool | operator== (const delta_base &_c) const |
bool | operator!= (const delta_base &_c) const |
bool | operator== (const point_delta &_c) const |
bool | operator!= (const point_delta &_c) const |
void | add (const t_line &_tl) |
void | add (const std::string &_tn, const dbt_row &_r) |
void | add (const std::vector< t_line > &_tlv) |
void | rm (const annotation &_tr) |
void | rm (const std::vector< annotation > &_trv) |
void | convert (work_node &_x, delta_base *&_u) |
bool | operator== (const table_delta &_c) const |
bool | operator!= (const table_delta &_c) const |
delta | make_delta (const std::string &a) |
const std::string & | get_action () const |
virtual void | unkeep () |
virtual bool | apply3 (work_node &_x, const work_node &_y, undelta_base *&_u, const delta_id &_d) const |
Protected Attributes | |
std::string | _action |
point_undelta
class is needed.
Definition at line 44 of file point_delta.h.
typedef std::vector<t_line> coco::table_delta::t_ctr [inherited] |
A variable of this type holds the new table entries.
Definition at line 49 of file table_delta.h.
typedef std::pair<std::string,dbt_row> coco::table_delta::t_line [inherited] |
This type specifies one row in one table.
Definition at line 47 of file table_delta.h.
coco::point_delta::point_delta | ( | ) | [inline] |
Standard Constructor
Definition at line 52 of file point_delta.h.
coco::point_delta::point_delta | ( | const dbt_row & | __p | ) | [inline] |
Constructor: the point is described, including all additional information as dbt_row
in the database format. It is stored in the table point
of points. The columns are
Name | Type | R/O | Description | Default |
x | vector<double> | required | the coordinates | |
L_mult | vector<double> | optional | the Lagrange multipliers | empty |
f | double | required | the objective value | |
kappa | double | optional | the KJ multiplier | 1 |
best | bool | optional | best point found | false |
verified | bool | optional | verified point | false |
feasible | bool | optional | feasible point | stored procedure |
optimal | bool | optional | local optimal | false |
global | bool | optional | global optimal | false |
relaxation | bool | optional | from relaxation | false |
class | unsigned int | optional | point class | 0 |
Definition at line 72 of file point_delta.h.
coco::point_delta::point_delta | ( | const point_delta & | __d | ) | [inline] |
Standard Copy Constructor
Definition at line 77 of file point_delta.h.
void coco::table_delta::add | ( | const std::vector< t_line > & | _tlv | ) | [inline, inherited] |
This method adds a list of table rows.
Definition at line 100 of file table_delta.h.
void coco::table_delta::add | ( | const std::string & | _tn, | |
const dbt_row & | _r | |||
) | [inline, inherited] |
This method adds one row _r
to the table _tn
.
Definition at line 97 of file table_delta.h.
void coco::table_delta::add | ( | const t_line & | _tl | ) | [inline, inherited] |
This method adds one table row.
Definition at line 95 of file table_delta.h.
bool coco::point_delta::apply | ( | work_node & | _x, | |
undelta_base *& | _u, | |||
const delta_id & | _did | |||
) | const [virtual] |
Apply the delta with delta_id _d
to work node _x
. This will never be used, because the point_delta is converted to annotation_delta before the apply is performed.
Reimplemented from coco::table_delta.
Definition at line 36 of file point_delta.cc.
bool coco::delta_base::apply3 | ( | work_node & | _x, | |
const work_node & | _y, | |||
undelta_base *& | _u, | |||
const delta_id & | _d | |||
) | const [inline, virtual, inherited] |
Apply the delta with delta_id _d
to work node _x
, constructing in the process work_node _y
, without changing _x
. In this process the undo information for this delta is stored in _u
. 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 apply
method.
Definition at line 88 of file api_delta.h.
void coco::table_delta::convert | ( | work_node & | _x, | |
delta_base *& | _u | |||
) | [virtual, inherited] |
This method converts the table delta to an annotation_delta after the information is stored in the search database. The conversion is based on work_node _x
, and the generated annotation_delta is returned via _u
.
Reimplemented from coco::delta_base.
Definition at line 42 of file table_delta.cc.
void coco::point_delta::create_table | ( | work_node & | _x, | |
vdbl::standard_table *& | ptb, | |||
const std::string & | __t | |||
) | const [virtual] |
This method creates the point
table in the search database for the work_node _x
. A pointer ptb
to the created table is set. The parameter __t
for the table name is ignored.
Reimplemented from coco::table_delta.
Definition at line 44 of file point_delta.cc.
void coco::point_delta::destroy_copy | ( | delta_base * | __d | ) | const [inline, virtual] |
const std::string& coco::delta_base::get_action | ( | ) | const [inline, inherited] |
Retrieve the action information (the delta type) for this delta.
Definition at line 184 of file api_deltabase.h.
delta coco::delta_base::make_delta | ( | const std::string & | a | ) | [inline, inherited] |
Construct a delta from this delta_base with the action a
.
Definition at line 175 of file api_deltabase.h.
point_delta* coco::point_delta::new_copy | ( | ) | const [inline, virtual] |
bool coco::table_delta::operator!= | ( | const table_delta & | _c | ) | const [inline, inherited] |
Definition at line 143 of file table_delta.h.
bool coco::point_delta::operator!= | ( | const point_delta & | _c | ) | const [inline] |
Definition at line 112 of file point_delta.h.
bool coco::point_delta::operator!= | ( | const delta_base & | _c | ) | const [inline] |
bool coco::table_delta::operator== | ( | const table_delta & | _c | ) | const [inline, inherited] |
Comparison operators
Definition at line 142 of file table_delta.h.
bool coco::point_delta::operator== | ( | const point_delta & | _c | ) | const [inline] |
Comparison operators
Definition at line 110 of file point_delta.h.
bool coco::point_delta::operator== | ( | const delta_base & | _c | ) | const [inline] |
Comparison operators
Reimplemented from coco::table_delta.
Definition at line 102 of file point_delta.h.
void coco::table_delta::rm | ( | const std::vector< annotation > & | _trv | ) | [inline, inherited] |
This method adds the annotations in _trv
to the list of removed annotations.
Definition at line 107 of file table_delta.h.
void coco::table_delta::rm | ( | const annotation & | _tr | ) | [inline, inherited] |
This method adds the annotation _tr
to the list of removed annotations.
Definition at line 104 of file table_delta.h.
virtual void coco::delta_base::unkeep | ( | ) | [inline, virtual, inherited] |
Perform this operation when the delta is released (unkept) from a work_node.
Reimplemented in coco::dag_delta.
Definition at line 194 of file api_deltabase.h.
std::string coco::delta_base::_action [protected, inherited] |
The action (type) of this delta
Definition at line 154 of file api_deltabase.h.