![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Classes | |
| struct | StorageHandler |
Public Types | |
| typedef StorageBase::StorageHandler StorageHandler::* | HandlerPtr |
| typedef StorageBase::StorageHandler StorageHandler::* | HandlerPtr |
Static Public Member Functions | |
| static int | effectiveLoopCount (const std::optional< Loop > &loop) |
| static int | effectiveLoopCount (const std::optional< Loop > &loop) |
Public Attributes | |
| TaskTree * | q = nullptr |
| Guard | m_guard |
| int | m_progressValue = 0 |
| int | m_asyncCount = 0 |
| QSet< StorageBase > | m_storages |
| QHash< StorageBase, StorageHandler > | m_storageHandlers |
| std::optional< TaskNode > | m_root |
| std::shared_ptr< RuntimeTask > | m_runtimeRoot |
Definition at line 1859 of file tasktree.cpp.
| typedef StorageBase::StorageHandler StorageHandler::* Tasking::TaskTreePrivate::HandlerPtr |
Definition at line 1882 of file tasktree.cpp.
| typedef StorageBase::StorageHandler StorageHandler::* Tasking::TaskTreePrivate::HandlerPtr |
Definition at line 1882 of file tasktree.cpp.
|
explicit |
Definition at line 2051 of file tasktree.cpp.
References q.
|
default |
|
explicit |
| Tasking::TaskTreePrivate::~TaskTreePrivate | ( | ) |
| void Tasking::TaskTreePrivate::advanceProgress | ( | int | byValue | ) |
Definition at line 2139 of file tasktree.cpp.
References m_progressValue.
Referenced by invokeTaskDoneHandler(), startChildren(), startTask(), and stopContainer().
| void Tasking::TaskTreePrivate::advanceProgress | ( | int | byValue | ) |
| void Tasking::TaskTreePrivate::bumpAsyncCount | ( | ) |
Definition at line 2130 of file tasktree.cpp.
References m_asyncCount.
Referenced by start().
| void Tasking::TaskTreePrivate::bumpAsyncCount | ( | ) |
|
inline |
Definition at line 1875 of file tasktree.cpp.
References callStorageHandler().
|
inline |
Definition at line 1875 of file tasktree.cpp.
|
inline |
Definition at line 1872 of file tasktree.cpp.
References callStorageHandler().
|
inline |
Definition at line 1872 of file tasktree.cpp.
|
inline |
Definition at line 1883 of file tasktree.cpp.
Referenced by callDoneHandler(), and callSetupHandler().
|
inline |
Definition at line 1883 of file tasktree.cpp.
| void Tasking::TaskTreePrivate::childDone | ( | RuntimeIteration * | iteration, |
| bool | success ) |
Definition at line 2325 of file tasktree.cpp.
References Tasking::Continue, continueContainer(), Tasking::RuntimeContainer::isStarting(), Tasking::RuntimeIteration::m_container, Tasking::RuntimeContainer::m_containerNode, Tasking::RuntimeIteration::m_doneCount, Tasking::RuntimeContainer::m_parentTask, Tasking::RuntimeContainer::m_runningChildren, Tasking::RuntimeTask::m_setupResult, Tasking::ContainerNode::m_workflowPolicy, stopContainer(), Tasking::StopOnError, Tasking::StopOnSuccess, Tasking::StopOnSuccessOrError, Tasking::toSetupResult(), and Tasking::RuntimeContainer::updateSuccessBit().
Referenced by continueContainer(), and startChildren().
| void Tasking::TaskTreePrivate::childDone | ( | RuntimeIteration * | iteration, |
| bool | success ) |
| void Tasking::TaskTreePrivate::continueContainer | ( | RuntimeContainer * | container | ) |
Definition at line 2245 of file tasktree.cpp.
References childDone(), Tasking::Continue, emitDone(), Tasking::Error, invokeDoneHandler(), Tasking::RuntimeContainer::isStarting(), Tasking::RuntimeIteration::m_container, Tasking::RuntimeContainer::m_parentTask, Tasking::RuntimeTask::m_setupResult, Tasking::RuntimeContainer::parentIteration(), Tasking::RuntimeIteration::removeChild(), startChildren(), Tasking::StopWithSuccess, Tasking::Success, Tasking::toSetupResult(), and Tasking::RuntimeContainer::updateSuccessBit().
Referenced by childDone(), and startTask().
| void Tasking::TaskTreePrivate::continueContainer | ( | RuntimeContainer * | container | ) |
|
inlinestatic |
Definition at line 1931 of file tasktree.cpp.
|
inlinestatic |
Definition at line 1931 of file tasktree.cpp.
Definition at line 2150 of file tasktree.cpp.
Referenced by continueContainer(), and stop().
| bool Tasking::TaskTreePrivate::invokeDoneHandler | ( | RuntimeContainer * | container, |
| DoneWith | doneWith ) |
Definition at line 2374 of file tasktree.cpp.
References Tasking::GroupItem::GroupHandler::m_callDoneIf, Tasking::RuntimeContainer::m_callStorageDoneHandlersOnDestruction, Tasking::RuntimeContainer::m_containerNode, Tasking::shouldCall(), Tasking::Success, and Tasking::toDoneResult().
Referenced by continueContainer(), and stopTask().
| bool Tasking::TaskTreePrivate::invokeDoneHandler | ( | RuntimeContainer * | container, |
| DoneWith | doneWith ) |
|
inline |
Definition at line 1914 of file tasktree.cpp.
|
inline |
Definition at line 1914 of file tasktree.cpp.
| bool Tasking::TaskTreePrivate::invokeLoopHandler | ( | RuntimeContainer * | container | ) |
Definition at line 2384 of file tasktree.cpp.
References Tasking::RuntimeContainer::m_containerNode, Tasking::RuntimeContainer::m_iterationCount, and Tasking::RuntimeContainer::m_shouldIterate.
Referenced by startChildren().
| bool Tasking::TaskTreePrivate::invokeLoopHandler | ( | RuntimeContainer * | container | ) |
| bool Tasking::TaskTreePrivate::invokeTaskDoneHandler | ( | RuntimeTask * | node, |
| DoneWith | doneWith ) |
Definition at line 2460 of file tasktree.cpp.
References advanceProgress(), Tasking::GroupItem::TaskHandler::m_callDoneIf, Tasking::RuntimeIteration::m_isProgressive, Tasking::RuntimeTask::m_parentIteration, Tasking::RuntimeTask::m_taskNode, Tasking::shouldCall(), Tasking::Success, and Tasking::toDoneResult().
Referenced by stopTask().
| bool Tasking::TaskTreePrivate::invokeTaskDoneHandler | ( | RuntimeTask * | node, |
| DoneWith | doneWith ) |
| void Tasking::TaskTreePrivate::start | ( | ) |
Definition at line 2098 of file tasktree.cpp.
References bumpAsyncCount(), m_asyncCount, and m_progressValue.
Referenced by Tasking::TaskTree::start().
| void Tasking::TaskTreePrivate::start | ( | ) |
| void Tasking::TaskTreePrivate::startChildren | ( | RuntimeContainer * | container | ) |
Definition at line 2269 of file tasktree.cpp.
References advanceProgress(), childDone(), Tasking::Continue, Tasking::RuntimeContainer::deleteFinishedIterations(), invokeLoopHandler(), Tasking::isProgressive(), Tasking::RuntimeContainer::m_containerNode, Tasking::RuntimeContainer::m_iterationCount, Tasking::RuntimeContainer::m_nextToStart, Tasking::ContainerNode::m_parallelLimit, Tasking::RuntimeContainer::m_parentTask, Tasking::RuntimeContainer::m_runningChildren, Tasking::RuntimeTask::m_setupResult, Tasking::RuntimeContainer::m_shouldIterate, Tasking::RuntimeContainer::m_successBit, Tasking::ContainerNode::m_taskCount, startTask(), Tasking::StopWithSuccess, and Tasking::toSetupResult().
Referenced by continueContainer().
| void Tasking::TaskTreePrivate::startChildren | ( | RuntimeContainer * | container | ) |
| void Tasking::TaskTreePrivate::startTask | ( | const std::shared_ptr< RuntimeTask > & | node | ) |
Definition at line 2398 of file tasktree.cpp.
References advanceProgress(), Tasking::Continue, continueContainer(), Tasking::isProgressive(), Tasking::RuntimeContainer::m_parentTask, Tasking::RuntimeTask::m_setupResult, Tasking::RuntimeContainer::m_successBit, Tasking::ContainerNode::m_taskCount, and Tasking::StopWithSuccess.
Referenced by startChildren().
| void Tasking::TaskTreePrivate::startTask | ( | const std::shared_ptr< RuntimeTask > & | node | ) |
| void Tasking::TaskTreePrivate::stop | ( | ) |
Definition at line 2120 of file tasktree.cpp.
References Tasking::Cancel, and emitDone().
Referenced by Tasking::TaskTree::cancel().
| void Tasking::TaskTreePrivate::stop | ( | ) |
| void Tasking::TaskTreePrivate::stopContainer | ( | RuntimeContainer * | container | ) |
Definition at line 2344 of file tasktree.cpp.
References advanceProgress(), Tasking::RuntimeContainer::m_containerNode, Tasking::RuntimeContainer::m_iterationCount, Tasking::ContainerNode::m_taskCount, and Tasking::RuntimeContainer::progressiveLoopCount().
Referenced by childDone(), and stopTask().
| void Tasking::TaskTreePrivate::stopContainer | ( | RuntimeContainer * | container | ) |
| void Tasking::TaskTreePrivate::stopTask | ( | RuntimeTask * | node | ) |
Definition at line 2445 of file tasktree.cpp.
References Tasking::Cancel, invokeDoneHandler(), invokeTaskDoneHandler(), and stopContainer().
| void Tasking::TaskTreePrivate::stopTask | ( | RuntimeTask * | node | ) |
| int Tasking::TaskTreePrivate::m_asyncCount = 0 |
Definition at line 1939 of file tasktree.cpp.
Referenced by Tasking::TaskTree::asyncCount(), bumpAsyncCount(), and start().
| Guard Tasking::TaskTreePrivate::m_guard |
Definition at line 1937 of file tasktree.cpp.
| int Tasking::TaskTreePrivate::m_progressValue = 0 |
Definition at line 1938 of file tasktree.cpp.
Referenced by advanceProgress(), Tasking::TaskTree::progressValue(), and start().
| std::optional< TaskNode > Tasking::TaskTreePrivate::m_root |
Definition at line 1942 of file tasktree.cpp.
| std::shared_ptr< RuntimeTask > Tasking::TaskTreePrivate::m_runtimeRoot |
Definition at line 1943 of file tasktree.cpp.
| QHash< StorageBase, StorageHandler > Tasking::TaskTreePrivate::m_storageHandlers |
Definition at line 1941 of file tasktree.cpp.
| QSet< StorageBase > Tasking::TaskTreePrivate::m_storages |
Definition at line 1940 of file tasktree.cpp.
| TaskTree * Tasking::TaskTreePrivate::q = nullptr |
Definition at line 1936 of file tasktree.cpp.
Referenced by TaskTreePrivate().