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

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 被忽略。