|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QSharedData Class Reference
[QtCore module]

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

     #include <QSharedData>

Inherited by Phonon::EffectParameterPrivate, Phonon::MediaSourcePrivate, Phonon::ObjectDescriptionData, Phonon::ObjectDescriptionPrivate, Phonon::PathPrivate, QAbstractXmlForwardIterator, QAbstractXmlNodeModel, QAbstractXmlReceiver, QPatternist::AtomicTypeVisitor, QPatternist::AtomicTypeVisitorResult, QPatternist::AtomicValue, QPatternist::Expression, QPatternist::ExpressionCreator, QPatternist::ExpressionFactory, QPatternist::ExpressionIdentifier, QPatternist::ExpressionVisitor, QPatternist::ExpressionVisitorResult, QPatternist::ExternalVariableLoader, QPatternist::FunctionArgument, QPatternist::FunctionFactory, QPatternist::FunctionSignature, QPatternist::ItemType, QPatternist::NamePool, QPatternist::NamespaceResolver, QPatternist::OptimizationPass, QPatternist::ParameterizedAtomicTypeVisitor, QPatternist::ParserContext, QPatternist::QAbstractXmlReceiver, QPatternist::ReportContext, QPatternist::ResourceLoader, QPatternist::SchemaComponent, QPatternist::SchemaTypeFactory, QPatternist::SequenceType, QPatternist::Tokenizer, QPatternist::UserFunction, QPatternist::VariableDeclaration, QScript::ArgumentsObjectData, QScript::C2Function, QScript::CFunction, QScript::Ecma::Core, QScript::Ecma::Global, QScript::Ecma::Math, QScript::Ext::EnumerationClassData, QScript::MemoryPool, QScript::QtFunction, QScript::ScriptFunction,

Note: All the functions in this class are reentrant.

- List of all members, including inherited members

### Public Functions

- QSharedData ()
- QSharedData ( const QSharedData & other )

## Detailed Description

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

QSharedData is designed to be used together with QSharedDataPointer to implement custom implicitly shared classes. It provides thread-safe reference counting.

See the QSharedDataPointer documentation for details.

## Member Function Documentation

### QSharedData::QSharedData ()

Constructs a QSharedData object with a reference count of 0.

### QSharedData::QSharedData ( const QSharedData & other )

Constructs a QSharedData object with a reference count of 0. (other is ignored.)