#include <comp_hook.h>
Public Member Functions | |
work_node_comp_hook (const wnc_hook_base &w) | |
work_node_comp_hook (const work_node_comp_hook &wh) | |
~work_node_comp_hook () | |
work_node_comp_hook & | operator= (const work_node_comp_hook &w) |
void | operator() (const work_node &wn, dbt_row &dbr, std::list< delta > *add_ds=NULL, std::list< certificate > *add_cs=NULL) |
bool | init_columns (vdbl::standard_table &stable) |
bool | drop_columns (vdbl::standard_table &stable) |
const std::string & | name () const |
Definition at line 50 of file comp_hook.h.
coco::work_node_comp_hook::work_node_comp_hook | ( | const wnc_hook_base & | w | ) | [inline] |
Constructor, which constructs a work node computation hook from a wnc_hook_base. The clone operation for the wnc_hook_base will be called in that process.
Definition at line 193 of file comp_hook.h.
coco::work_node_comp_hook::work_node_comp_hook | ( | const work_node_comp_hook & | wh | ) | [inline] |
Copy Constructor, which constructs a new work node computation hook from an existing one. The clone operation for the wnc_hook_base will be called in that process, effectively overloading the copy constructor for the wnc_hook_base.
Definition at line 198 of file comp_hook.h.
coco::work_node_comp_hook::~work_node_comp_hook | ( | ) | [inline] |
Standard Destructor calling delete
on __wh
.
Definition at line 203 of file comp_hook.h.
bool coco::work_node_comp_hook::drop_columns | ( | vdbl::standard_table & | stable | ) | [inline] |
Upon unregistering this hook, destroy the column(s) in the ``search info'' table in which the result(s) of this hook are stored.
Definition at line 227 of file comp_hook.h.
bool coco::work_node_comp_hook::init_columns | ( | vdbl::standard_table & | stable | ) | [inline] |
Upon registering this hook, initialize the column(s) in the ``search info'' table in which the result(s) of this hook are stored.
Definition at line 222 of file comp_hook.h.
const std::string & coco::work_node_comp_hook::name | ( | ) | const [inline] |
Return the identifier string for this work node computation hook.
Definition at line 232 of file comp_hook.h.
void coco::work_node_comp_hook::operator() | ( | const work_node & | wn, | |
dbt_row & | dbr, | |||
std::list< delta > * | add_ds = NULL , |
|||
std::list< certificate > * | add_cs = NULL | |||
) | [inline] |
The evaluation operator of this computation hook. It stores the result of the hook applied to work_node wn
in dbt_row dbr
, which in return is stored in the ``search info'' table of the search database. The hook can compute additional deltas and add them to add_ds
, which are applied to the work node during the split.
Definition at line 216 of file comp_hook.h.
work_node_comp_hook & coco::work_node_comp_hook::operator= | ( | const work_node_comp_hook & | w | ) | [inline] |
Assignment operator, which uses the clone operation for the wnc_hook_base, effectively overloading the assignment operator for the wnc_hook_base.
Definition at line 209 of file comp_hook.h.