Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Tasking::Forever Class Referencefinal

#include <tasktree.h>

+ Inheritance diagram for Tasking::Forever:
+ Collaboration diagram for Tasking::Forever:

Public Member Functions

 Forever (const QList< GroupItem > &children)
 
 Forever (std::initializer_list< GroupItem > children)
 
- Public Member Functions inherited from Tasking::For
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.
 

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)>
 
- Protected Member Functions inherited from Tasking::For
 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)
 
- 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 ()
 

Detailed Description

Definition at line 478 of file tasktree.h.

Constructor & Destructor Documentation

◆ Forever() [1/2]

Tasking::Forever::Forever ( const QList< GroupItem > & children)
inline

Definition at line 481 of file tasktree.h.

References Tasking::LoopForever::LoopForever().

+ Here is the call graph for this function:

◆ Forever() [2/2]

Tasking::Forever::Forever ( std::initializer_list< GroupItem > children)
inline

Definition at line 482 of file tasktree.h.

References Tasking::LoopForever::LoopForever().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: