Skip to main content

class command_graph

Declaration

class command_graph { /* full declaration omitted */ };

Member Variables

command_id m_next_cmd_id = 0
std::unordered_map< command_id, std::unique_ptr<abstract_command>> m_commands
std::unordered_map<task_id, std::vector<task_command*>> m_by_task
command_set m_execution_front

Member Function Overview

  • add_dependency(abstract_command * depender, abstract_command * dependee, dependency_kind kind, dependency_origin origin) → void
  • all_commands() const → iterable_range<transform_iterator<_Node_const_iterator<pair<const command_id, unique_ptr<abstract_command>>, false, false>, (lambda at /home/psalz/celerity-runtime/include/command_graph.h:126:27)>>
  • command_count() const → size_t
  • template <typename T, typename... Args>
    create(Args &&... args) → T *
  • erase(abstract_command * cmd) → void
  • erase_if(std::function<bool (abstract_command *)> condition) → void
  • get(command_id cid) → abstract_command *
  • template <typename T>
    get(command_id cid) → T *
  • get_execution_front() const → const command_set &
  • has(command_id cid) const → bool
  • remove_dependency(abstract_command * depender, abstract_command * dependee) → void
  • task_command_count(task_id tid) const → size_t
  • task_commands(task_id tid) → mapped_type &

Member Functions

void add_dependency(abstract_command* depender,
                    abstract_command* dependee,
                    dependency_kind kind,
                    dependency_origin origin)

Parameters

abstract_command* depender
abstract_command* dependee
dependency_kind kind
dependency_origin origin

iterable_range<transform_iterator<
    _Node_const_iterator<
        pair<const command_id,
             unique_ptr<abstract_command>>,
        false,
        false>,
    (lambda at / home / psalz / celerity -
     runtime / include /
         command_graph.h : 126 : 27)>>
all_commands() const


size_t command_count() const


template <typename T, typename... Args>
T* create(Args&&... args)

Template Parameters

T
Args

Parameters

Args&&... args

void erase(abstract_command* cmd)

Parameters

abstract_command* cmd

void erase_if(
    std::function<bool(abstract_command*)>
        condition)

Parameters

std::function<bool(abstract_command*)> condition

abstract_command* get(command_id cid)

Parameters

command_id cid

template <typename T>
T* get(command_id cid)

Template Parameters

T

Parameters

command_id cid

const command_set& get_execution_front() const


bool has(command_id cid) const

Parameters

command_id cid

void remove_dependency(abstract_command* depender,
                       abstract_command* dependee)

Parameters

abstract_command* depender
abstract_command* dependee

size_t task_command_count(task_id tid) const

Parameters

task_id tid

mapped_type& task_commands(task_id tid)

Parameters

task_id tid