The task class (non-void result type) More...
#include <transwarp.h>
Public Types | |
using | result_type = ResultType |
Public Member Functions | |
virtual void | set_value (const typename transwarp::remove_refc< result_type >::type &value)=0 |
virtual void | set_value (typename transwarp::remove_refc< result_type >::type &&value)=0 |
virtual const std::shared_future < result_type > & | get_future () const noexcept=0 |
virtual transwarp::result_info < result_type >::type | get () const =0 |
![]() | |
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 | remove_listener (const std::shared_ptr< transwarp::listener > &listener)=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 |
Additional Inherited Members | |
![]() | |
virtual void | schedule_impl (bool reset, transwarp::executor *executor=nullptr)=0 |
The task class (non-void result type)