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 提供 thread-safe 引用计数。

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.