QtTaskTree::QMappedTaskTreeRunner Class
template <typename Key> class QtTaskTree::QMappedTaskTreeRunner지정된 키 유형으로 매핑된 작업 트리 실행 컨트롤러입니다. 더 보기...
| 헤더: | #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()
매핑된 작업 트리 러너를 삭제합니다. 실행 중인 모든 작업 트리가 삭제됩니다. 작업 트리의 완료 핸들러는 호출되지 않습니다.
~QTaskTree()도 참조하세요 .
void QMappedTaskTreeRunner::cancel()
실행 중인 모든 작업 트리를 취소합니다. DoneWith::Cancel 로 작업 트리의 완료 핸들러를 호출합니다. 작업 트리의 취소 순서는 무작위입니다.
void QMappedTaskTreeRunner::cancelKey(const Key &key)
key 로 시작된 잠재적으로 실행 중인 작업 트리를 취소합니다. DoneWith::Cancel 으로 작업 트리의 완료 핸들러를 호출합니다.
bool QMappedTaskTreeRunner::isKeyRunning(const Key &key) const
매핑된 태스크 트리 런처가 현재 key 로 시작된 태스크 트리를 실행 중인지 여부를 반환합니다.
bool QMappedTaskTreeRunner::isRunning() const
매핑된 작업 트리 실행기가 현재 하나 이상의 작업 트리를 실행하고 있는지 여부를 반환합니다.
void QMappedTaskTreeRunner::reset()
실행 중인 모든 작업 트리를 초기화합니다. 작업 트리의 완료 핸들러가 호출되지 않습니다.
void QMappedTaskTreeRunner::resetKey(const Key &key)
key 로 시작된 잠재적으로 실행 중인 작업 트리를 초기화합니다. 작업 트리의 완료 핸들러가 호출되지 않습니다.
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 을 호출합니다. 전달된 callDone 에 따라 doneHandler 이 호출됩니다.
© 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.