QSharedData 類

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

頭: #include <QSharedData>
qmake: QT += core

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

公共函數

QSharedData ()
QSharedData ( const QSharedData & )

公共變量

QAtomicInt ref

詳細描述

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 & )

構造 QSharedData object with reference count 0. The parameter is ignored.