Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <tasktree.h>
Public Member Functions | |
template<typename ... Args> | |
For (const Loop &loop, const Args &...args) | |
Public Member Functions inherited from Tasking::Group | |
Group (const QList< GroupItem > &children) | |
Constructs a group with a given list of children. | |
Group (std::initializer_list< GroupItem > children) | |
Constructs a group from std::initializer_list given by children. | |
Public Member Functions inherited from Tasking::ExecutableItem | |
ExecutableItem | withTimeout (std::chrono::milliseconds timeout, const std::function< void()> &handler={}) const |
Attaches TimeoutTask to a copy of this ExecutableItem, elapsing after timeout in milliseconds, with an optionally provided timeout handler, and returns the coupled item. | |
ExecutableItem | withLog (const QString &logName) const |
Attaches a custom debug printout to a copy of this ExecutableItem, issued on task startup and after the task is finished, and returns the coupled item. | |
template<typename SenderSignalPairGetter > | |
ExecutableItem | withCancel (SenderSignalPairGetter &&getter) const |
Public Member Functions inherited from Tasking::GroupItem | |
template<typename StorageStruct > | |
GroupItem (const Storage< StorageStruct > &storage) | |
Constructs a GroupItem element holding the storage object. | |
GroupItem (const QList< GroupItem > &children) | |
Constructs a GroupItem element with a given list of items. | |
GroupItem (std::initializer_list< GroupItem > children) | |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Protected Member Functions | |
For (const Loop &loop, const QList< GroupItem > &children) | |
For (const Loop &loop, std::initializer_list< GroupItem > children) | |
Protected Member Functions inherited from Tasking::ExecutableItem | |
ExecutableItem ()=default | |
ExecutableItem (const TaskHandler &handler) | |
Protected Member Functions inherited from Tasking::GroupItem | |
GroupItem (const Loop &loop) | |
GroupItem ()=default | |
GroupItem (Type type) | |
GroupItem (const GroupData &data) | |
GroupItem (const TaskHandler &handler) | |
void | addChildren (const QList< GroupItem > &children) |
Additional Inherited Members | |
Public Types inherited from Tasking::GroupItem | |
using | GroupSetupHandler = std::function<SetupResult()> |
using | GroupDoneHandler = std::function<DoneResult(DoneWith)> |
Static Public Member Functions inherited from Tasking::Group | |
template<typename Handler > | |
static GroupItem | onGroupSetup (Handler &&handler) |
template<typename Handler > | |
static GroupItem | onGroupDone (Handler &&handler, CallDoneIf callDoneIf=CallDoneIf::SuccessOrError) |
Protected Types inherited from Tasking::GroupItem | |
enum class | Type { List , Group , GroupData , Storage , TaskHandler } |
using | InterfaceCreateHandler = std::function<TaskInterface *(void)> |
using | InterfaceSetupHandler = std::function<SetupResult(TaskInterface &)> |
using | InterfaceDoneHandler = std::function<DoneResult(const TaskInterface &, DoneWith)> |
Static Protected Member Functions inherited from Tasking::GroupItem | |
static GroupItem | groupHandler (const GroupHandler &handler) |
template<typename Result , typename Function , typename ... Args, typename DecayedFunction = std::decay_t<Function>> | |
static constexpr bool | isInvocable () |
Definition at line 447 of file tasktree.h.
|
inline |
Definition at line 451 of file tasktree.h.
Definition at line 455 of file tasktree.h.
|
inlineprotected |
Definition at line 456 of file tasktree.h.