QSharedData Class
QSharedData クラスは、共有データオブジェクトの基底クラスです。詳細...
| ヘッダー: | #include <QSharedData> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
注:このクラスのすべての関数は再入可能です。
パブリック関数
| QSharedData() | |
| QSharedData(const QSharedData &) | |
| ~QSharedData() | |
| QSharedData & | operator=(const QSharedData &) |
詳細な説明
QSharedData は、QSharedDataPointer またはQExplicitlySharedDataPointer と組み合わせて使用し、カスタムで暗黙的に共有されるクラスや明示的に共有されるクラスを実装するように設計されています。QSharedData は、スレッドセーフな参照カウント機能を提供します。
詳細については、QSharedDataPointer およびQExplicitlySharedDataPointer を参照してください。
メンバ関数のドキュメント
[noexcept] QSharedData::QSharedData()
参照カウントが 0 の QSharedData オブジェクトを生成します。
[noexcept] QSharedData::QSharedData(const QSharedData &)
参照カウントが 0 の QSharedData オブジェクトを作成します。パラメータは無視されます。
[constexpr noexcept default] QSharedData::~QSharedData()
QSharedData のインスタンスを破棄します。
[delete] QSharedData &QSharedData::operator=(const QSharedData &)
other をこのQSharedData インスタンスにコピー代入します。この関数は削除されます。
© 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.