QSharedData 類

The QSharedData class is a base class for shared data objects. 更多...

頭: #include <QSharedData>
qmake: QT += core
繼承者: QAbstractXmlNodeModel , QDBusIntrospection::Interface ,和 QDBusIntrospection::Object

注意: 此類的所有函數 可重入 .

公共函數

QSharedData ()
QSharedData (const QSharedData & other )

詳細描述

The QSharedData class is a base class for shared data objects.

QSharedData is designed to be used with QSharedDataPointer or QExplicitlySharedDataPointer 以實現自定義 隱式共享 or explicitly shared classes. QSharedData 提供 綫程安全 引用計數。

QSharedDataPointer and QExplicitlySharedDataPointer 瞭解細節。

成員函數文檔編製

QSharedData:: QSharedData ()

構造 QSharedData object with a reference count of 0.

QSharedData:: QSharedData (const QSharedData & other )

構造 QSharedData object with reference count 0. other 被忽略。