Class bi_tdgraph_executive

Inheritance Relationships

Base Types

Class Documentation

class bi_tdgraph_executive : public cosm::ta::base_executive, public rer::client<bi_tdgraph_executive>

A task executive which tasks are run one step at a time and polled until they are finished. Operates on cta::ds::bi_tdgraph.

Public Types

using start_notify_cb = std::function<void(polled_task*, const ds::bi_tab*)>

Public Functions

bi_tdgraph_executive(const config::task_executive_config *exec_config, const config::task_alloc_config *const alloc_config, ds::ds_variant &&ds, rmath::rng *rng)
const ds::bi_tab *active_tab(void) const

Get the TAB corresponding to the currently active task.

const ds::bi_tdgraph *graph(void) const
const polled_task *parent_task(const polled_task *v)

Get the parent task of the specified one.

const polled_task *root_task(void) const
inline void task_start_notify(const start_notify_cb &cb)

Set an optional callback that will be run when a new task is started.

The callback will be passed a pointer to the task that was just started.

Protected Functions

ds::bi_tdgraph *graph(void)
polled_task *root_task(void)