QuantumLibrary
|
Interface to a task. For internal use only. More...
#include <quantum_itask.h>
Public Types | |
enum | Type : int { Type::Standalone, Type::First, Type::Continuation, Type::ErrorHandler, Type::Final, Type::Termination, Type::IO } |
enum | RetCode : int { RetCode::Success = 0, RetCode::Running = std::numeric_limits<int>::max(), RetCode::Exception = (int)Running-1, RetCode::NotCallable = (int)Running-2 } |
using | Ptr = std::shared_ptr< ITask > |
using | WeakPtr = std::weak_ptr< ITask > |
Public Member Functions | |
~ITask ()=default | |
virtual int | run ()=0 |
virtual void | setQueueId (int queueId)=0 |
virtual int | getQueueId ()=0 |
virtual Type | getType () const =0 |
virtual bool | isBlocked () const =0 |
virtual bool | isSleeping (bool updateTimer=false)=0 |
virtual bool | isHighPriority () const =0 |
![]() | |
virtual | ~ITerminate ()=default |
Virtual destructor. This function is explicitly left empty. More... | |
virtual void | terminate ()=0 |
Terminates the object. More... | |
Interface to a task. For internal use only.
using Bloomberg::quantum::ITask::Ptr = std::shared_ptr<ITask> |
using Bloomberg::quantum::ITask::WeakPtr = std::weak_ptr<ITask> |
|
strong |
|
strong |
|
default |
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.
|
pure virtual |
Implemented in Bloomberg::quantum::Task, and Bloomberg::quantum::IoTask.