|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
An ITask represents an invocable piece of work that produces a WorkerResult. More...
#include <ITask.hpp>
Public Member Functions | |
| ITask (const std::string_view task_name) | |
| virtual | ~ITask () noexcept=default |
| Destruct the ITask base. | |
| WorkerResult | execute (const std::stop_token &stop_token) |
| Execute the work, subject to the given token, and produce a WorkerResult. | |
| WorkerResult | operator() () |
| Alias for execute with a vacuous stop token. | |
| Public Member Functions inherited from echomap::Object< ITask > | |
| ~Object ()=default | |
| Non-virtual base destructor. | |
| id_type | get_id () const noexcept |
| bool | is_valid () const noexcept |
| void | set_name (const std::string_view new_name) |
| std::string_view | get_name () const noexcept |
| const char * | get_imgui_name () const noexcept |
| Object (const Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| bool | operator== (const Object &other) const noexcept |
| Determine shallow equality between two Object instances. | |
Private Member Functions | |
| virtual WorkerResult | execute_work ()=0 |
| Execute the work and produce a WorkerResult. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from echomap::Object< ITask > | |
| static std::string_view | get_class_name () noexcept |
| Protected Member Functions inherited from echomap::Object< ITask > | |
| void | move_identity_from (Object &&other) noexcept |
| Helper for derived classes to provide move-assignment operations. | |
An ITask represents an invocable piece of work that produces a WorkerResult.
|
inlineexplicit |
| WorkerResult echomap::ITask::execute | ( | const std::stop_token & | stop_token | ) |
Execute the work, subject to the given token, and produce a WorkerResult.
| stop_token | Token for cancelling execution. |
nullptr if the cancelled. Definition at line 18 of file ITask.cpp.
|
privatepure virtual |
Execute the work and produce a WorkerResult.
Implemented in echomap::DFTTask, echomap::DownsampleTask, echomap::LoadProjectTask, and echomap::LoadSignalFileTask.
| WorkerResult echomap::ITask::operator() | ( | ) |
Alias for execute with a vacuous stop token.
Definition at line 25 of file ITask.cpp.