QtTaskTree::ElseIf Class
class QtTaskTree::ElseIf条件式で使用される「else if」要素。詳細...
| ヘッダー: | #include <qconditional.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS TaskTree) target_link_libraries(mytarget PRIVATE Qt6::TaskTree) |
| qmake: | QT += tasktree |
| 以下のように: | Qt 6.11 |
| ステータス: | テクノロジープレビュー |
このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。
注:このクラスのすべての関数は再入可能です。
パブリック関数
| ElseIf(const QtTaskTree::ExecutableItem &condition) | |
| ElseIf(Handler &&handler) | |
| ElseIf(QtTaskTree::ElseIf &&other) |
詳細な説明
条件式の代替条件要素です。常に、Then 要素の前後に配置する必要があります。
メンバー関数のドキュメント
[explicit] ElseIf::ElseIf(const QtTaskTree::ExecutableItem &condition)
条件式で使用するための、condition タスクを含む代替条件要素を作成します。
「If」も参照してください 。
[explicit] template <typename Handler, std::enable_if_t<!std::is_base_of_v<ExecutableItem, std::decay_t<Handler>>, bool> = true> ElseIf::ElseIf(Handler &&handler)
実行中のQTaskTree が初期条件を評価する際に実行される、同期的なhandler を受け取るヘルパーコンストラクタ。
これは、以下の処理のショートカットです:
ElseIf (QSyncTask(handler))許容されるハンドラの種類に関する詳細については、QSyncTask を参照してください。
これはオーバーロードされた関数です。
[constexpr noexcept default] ElseIf::ElseIf(QtTaskTree::ElseIf &&other)
ElseIf のインスタンスをMoveコンストラクタで生成します。
© 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.