|
Bifrost SDK
Bifrost SDK documentation
|
Class referencing (non-owning) a concrete ITaskObserver. More...
#include <TaskObserver.h>
Public Member Functions | |
| AMINO_CORE_SHARED_DECL | TaskNotifier () noexcept |
| Default Constructor (constructs a noop notifier). More... | |
| AMINO_CORE_SHARED_DECL | TaskNotifier (TaskNotifier &&) noexcept |
| Move constructor. More... | |
| TaskNotifier (TaskNotifier const &)=delete | |
| TaskNotifier is not copy-constructible. More... | |
| AMINO_CORE_SHARED_DECL TaskNotifier & | operator= (TaskNotifier &&) noexcept |
| Move assignment operator. More... | |
| TaskNotifier & | operator= (TaskNotifier const &)=delete |
| TaskNotifier is not copy-assignable. More... | |
| AMINO_CORE_SHARED_DECL | ~TaskNotifier () |
| Destructor. More... | |
| AMINO_CORE_SHARED_DECL void | notifyStart () const |
| Notify the observer that the task has started. More... | |
| void | notifyProgress (StringView const &title, unsigned num, unsigned denum) const |
| Notify the observer of the progress of a named task. More... | |
| AMINO_CORE_SHARED_DECL void | notifyMessage (Message const &message) const |
| Notify the observer that a message was reported. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyDebug (Args &&... args) const |
| Short-hand for notifying a debug message. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyInfo (Args &&... args) const |
| Short-hand for notifying an info message. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyWarning (Args &&... args) const |
| Short-hand for notifying a warning message. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyError (Args &&... args) const |
| Short-hand for notifying an error message. More... | |
| AMINO_CORE_SHARED_DECL void | notifyDone (TaskStatus status) const |
| Notify the observer that the task has completed. More... | |
| void | notifySuccess () const |
| Notify the observer that the task has completed successfully. More... | |
| void | notifyError () const |
| Notify the observer that the task has completed with errors. More... | |
| void | notifyCancelled () const |
| Notify the observer that the task has completed due to cancellation. More... | |
| void | notifyDropped () const |
| Notify the observer that the task has been dropped. More... | |
| AMINO_CORE_SHARED_DECL bool | isValid () const |
| Whether this notifier is valid (wraps a concrete ITaskObserver and which its TaskObserver manager is still alive). More... | |
| operator bool () const | |
| Whether this notifier is valid (wraps a concrete ITaskObserver and which its TaskObserver manager is still alive). More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyMessage (MessageKind kind, Source source, MessageClass cls, MessageText text, Args const &... args) const |
| Notify the observer that a message was reported. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyMessage (MessageKind kind, MessageClass cls, MessageText text, Args const &... args) const |
| Notify the observer that a message was reported. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyMessage (MessageKind kind, MessageText text, Args const &... args) const |
| Notify the observer that a message was reported. More... | |
| template<typename... Args> | |
| AMINO_INTERNAL_FORCEINLINE void | notifyMessage (MessageKind kind, Source source, MessageText text, Args const &... args) const |
| Notify the observer that a message was reported. More... | |
Class referencing (non-owning) a concrete ITaskObserver.
This class is intented to be passed to the computation tasks to report progress. The TaskNotifier can outlive the TaskObserver, in which case the notifications will just stop being sent (will become no-ops).
Definition at line 326 of file TaskObserver.h.
|
noexcept |
Default Constructor (constructs a noop notifier).
|
noexcept |
Move constructor.
|
delete |
TaskNotifier is not copy-constructible.
| AMINO_CORE_SHARED_DECL Amino::TaskNotifier::~TaskNotifier | ( | ) |
Destructor.
| AMINO_CORE_SHARED_DECL bool Amino::TaskNotifier::isValid | ( | ) | const |
Whether this notifier is valid (wraps a concrete ITaskObserver and which its TaskObserver manager is still alive).
|
inline |
Notify the observer that the task has completed due to cancellation.
Definition at line 448 of file TaskObserver.h.
References Amino::TaskStatus::eCancelled.
|
inline |
Short-hand for notifying a debug message.
Definition at line 414 of file TaskObserver.h.
References Amino::eDebug.
| AMINO_CORE_SHARED_DECL void Amino::TaskNotifier::notifyDone | ( | TaskStatus | status | ) | const |
Notify the observer that the task has completed.
|
inline |
Notify the observer that the task has been dropped.
Definition at line 451 of file TaskObserver.h.
References Amino::TaskStatus::eDropped.
|
inline |
Notify the observer that the task has completed with errors.
Definition at line 444 of file TaskObserver.h.
References Amino::TaskStatus::eError.
|
inline |
Short-hand for notifying an error message.
Definition at line 432 of file TaskObserver.h.
References Amino::eError.
|
inline |
Short-hand for notifying an info message.
Definition at line 420 of file TaskObserver.h.
References Amino::eInfo.
| AMINO_CORE_SHARED_DECL void Amino::TaskNotifier::notifyMessage | ( | Message const & | message | ) | const |
Notify the observer that a message was reported.
|
inline |
Notify the observer that a message was reported.
Definition at line 385 of file TaskObserver.h.
|
inline |
Notify the observer that a message was reported.
Definition at line 394 of file TaskObserver.h.
|
inline |
Notify the observer that a message was reported.
Definition at line 375 of file TaskObserver.h.
|
inline |
Notify the observer that a message was reported.
Definition at line 401 of file TaskObserver.h.
|
inline |
Notify the observer of the progress of a named task.
num <= denum Definition at line 362 of file TaskObserver.h.
| AMINO_CORE_SHARED_DECL void Amino::TaskNotifier::notifyStart | ( | ) | const |
Notify the observer that the task has started.
|
inline |
Notify the observer that the task has completed successfully.
Definition at line 441 of file TaskObserver.h.
References Amino::TaskStatus::eSuccess.
|
inline |
Short-hand for notifying a warning message.
Definition at line 426 of file TaskObserver.h.
References Amino::eWarning.
|
inlineexplicit |
Whether this notifier is valid (wraps a concrete ITaskObserver and which its TaskObserver manager is still alive).
Definition at line 353 of file TaskObserver.h.
|
noexcept |
Move assignment operator.
|
delete |
TaskNotifier is not copy-assignable.