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 提供 thread-safe 引用计数。
见 QSharedDataPointer and QExplicitlySharedDataPointer 了解细节。
构造 QSharedData object with a reference count of 0.
构造 QSharedData object with reference count 0. The parameter is ignored.