An interface for the task class. More...
#include <transwarp.h>
Public Member Functions | |
virtual void | set_executor (std::shared_ptr< transwarp::executor > executor)=0 |
virtual void | set_executor_all (std::shared_ptr< transwarp::executor > executor)=0 |
virtual void | remove_executor ()=0 |
virtual void | remove_executor_all ()=0 |
virtual void | set_priority (std::size_t priority)=0 |
virtual void | set_priority_all (std::size_t priority)=0 |
virtual void | reset_priority ()=0 |
virtual void | reset_priority_all ()=0 |
virtual void | set_custom_data (std::shared_ptr< void > custom_data)=0 |
virtual void | set_custom_data_all (std::shared_ptr< void > custom_data)=0 |
virtual void | remove_custom_data ()=0 |
virtual void | remove_custom_data_all ()=0 |
virtual const std::shared_ptr < transwarp::node > & | get_node () const noexcept=0 |
virtual void | add_listener (std::shared_ptr< transwarp::listener > listener)=0 |
virtual void | add_listener (transwarp::event_type event, std::shared_ptr< transwarp::listener > listener)=0 |
virtual void | remove_listener (const std::shared_ptr< transwarp::listener > &listener)=0 |
virtual void | remove_listener (transwarp::event_type event, const std::shared_ptr< transwarp::listener > &listener)=0 |
virtual void | remove_listeners (transwarp::event_type event)=0 |
virtual void | remove_listeners ()=0 |
virtual void | schedule ()=0 |
virtual void | schedule (transwarp::executor &executor)=0 |
virtual void | schedule (bool reset)=0 |
virtual void | schedule (transwarp::executor &executor, bool reset)=0 |
virtual void | schedule_all ()=0 |
virtual void | schedule_all (transwarp::executor &executor)=0 |
virtual void | schedule_all (bool reset_all)=0 |
virtual void | schedule_all (transwarp::executor &executor, bool reset_all)=0 |
virtual void | schedule_all (transwarp::schedule_type type)=0 |
virtual void | schedule_all (transwarp::executor &executor, transwarp::schedule_type type)=0 |
virtual void | schedule_all (transwarp::schedule_type type, bool reset_all)=0 |
virtual void | schedule_all (transwarp::executor &executor, transwarp::schedule_type type, bool reset_all)=0 |
virtual void | set_exception (std::exception_ptr exception)=0 |
virtual bool | was_scheduled () const noexcept=0 |
virtual void | wait () const =0 |
virtual bool | is_ready () const =0 |
virtual bool | has_result () const =0 |
virtual void | reset ()=0 |
virtual void | reset_all ()=0 |
virtual void | cancel (bool enabled) noexcept=0 |
virtual void | cancel_all (bool enabled) noexcept=0 |
virtual std::vector < transwarp::edge > | get_graph () const =0 |
Protected Member Functions | |
virtual void | schedule_impl (bool reset, transwarp::executor *executor=nullptr)=0 |
Friends | |
struct | transwarp::detail::visit_depth |
struct | transwarp::detail::unvisit |
struct | transwarp::detail::final_visitor |
struct | transwarp::detail::schedule_visitor |
An interface for the task class.