QtTaskTree::QMappedTaskTreeRunner Class
template <typename Key> class QtTaskTree::QMappedTaskTreeRunner指定されたKey型でマップされたタスクツリー実行コントローラ。詳細...
| ヘッダ | #include <qtasktreerunner.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree)target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| 以来: | Qt 6.11 |
パブリック関数
| QMappedTaskTreeRunner() | |
| ~QMappedTaskTreeRunner() | |
| void | cancel() |
| void | cancelKey(const Key &key) |
| bool | isKeyRunning(const Key &key) const |
| bool | isRunning() const |
| void | reset() |
| void | resetKey(const Key &key) |
| void | start(const Key &key, const QtTaskTree::Group &recipe, SetupHandler &&setupHandler = {}, DoneHandler &&doneHandler = {}, QtTaskTree::CallDone callDone = QtTaskTree::CallDoneFlag::Always) |
詳細な説明
Key 型を使用して、マップされたタスクツリーの実行を管理します。start() メソッドを使用して、与えられたキーのレシピを無条件に実行し、同じキーで実行されている可能性のあるタスクツリーをリセットし、異なるキーで実行されている可能性のある他のタスクツリーを並列に維持します。
Task Tree Runnersも参照 。
メンバ関数ドキュメント
QMappedTaskTreeRunner::QMappedTaskTreeRunner()
マッピングされたタスクツリーランナーを構築する。タスク・ツリーのマッピングにはKey 型を使用します。
QMappedTaskTreeRunner::~QMappedTaskTreeRunner()
マップされたタスクツリーランナーを破棄する。実行中のタスクツリーはすべて削除される。タスクツリーのdoneハンドラは呼ばれない。
~QTaskTree()も参照のこと 。
void QMappedTaskTreeRunner::cancel()
実行中のタスクツリーをすべてキャンセルする。タスクツリーの done ハンドラをDoneWith::Cancel で呼び出す。タスクツリーのキャンセルの順番はランダムである。
void QMappedTaskTreeRunner::cancelKey(const Key &key)
key で開始された潜在的に実行中のタスクツリーをキャンセルする。 タスクツリーの done ハンドラーをDoneWith::Cancel で呼び出す。
bool QMappedTaskTreeRunner::isKeyRunning(const Key &key) const
マップされたタスクツリーランナーが、key で開始されたタスクツリーを現在実行しているかどうかを返します。
bool QMappedTaskTreeRunner::isRunning() const
マップされたタスクツリーランナーが、現在少なくとも1つのタスクツリーを実行しているかどうかを返します。
void QMappedTaskTreeRunner::reset()
実行中のタスクツリーをすべてリセットする。タスクツリーのdoneハンドラは呼ばれない。
void QMappedTaskTreeRunner::resetKey(const Key &key)
key で開始された潜在的に実行中のタスクツリーをリセットする。 タスクツリーの done ハンドラーは呼ばれない。
template <typename SetupHandler = QtTaskTree::TreeSetupHandler, typename DoneHandler = QtTaskTree::TreeDoneHandler> void QMappedTaskTreeRunner::start(const Key &key, const QtTaskTree::Group &recipe, SetupHandler &&setupHandler = {}, DoneHandler &&doneHandler = {}, QtTaskTree::CallDone callDone = QtTaskTree::CallDoneFlag::Always)
与えられたkey のrecipe を無条件に開始する。同じキーで実行中の可能性のあるタスクツリーはリセットされ、 異なるキーで実行中の可能性のある他のタスクツリーは並列に維持される。新しいタスクツリーが開始されようとするとき、setupHandler を呼び出す。タスクツリーが終了するとdoneHandler を呼び出す。doneHandler は、渡されたcallDone に従って呼び出される。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.