Qt 4.8
Public Functions | Public Variables | Private Functions | List of all members
QSharedData Class Reference

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

#include <qshareddata.h>

Inheritance diagram for QSharedData:
QAbstractXmlForwardIterator< T > QAbstractXmlForwardIterator< Item > QAbstractXmlForwardIterator< OutputType > QAbstractXmlForwardIterator< QPatternist::Item > QAbstractXmlForwardIterator< QString > QAbstractXmlForwardIterator< TResult > QAbstractXmlForwardIterator< TSource > QAbstractXmlNodeModel QAudioDeviceInfoPrivate QAudioFormatPrivate QCss::Declaration::DeclarationData QDBusIntrospection::Interface QDBusIntrospection::Object QDBusPendingCallPrivate QDBusUnixFileDescriptorPrivate QDeclarativeDomBasicValuePrivate QDeclarativeDomDocumentPrivate QDeclarativeDomDynamicPropertyPrivate QDeclarativeDomImportPrivate QDeclarativeDomObjectPrivate QDeclarativeDomPropertyPrivate QDeclarativeDomValuePrivate QDeclarativeJS::MemoryPool QDeclarativeScriptStringPrivate QDirPrivate QFileInfoPrivate QFontEngineGlyphCache QGlyphRunPrivate QHttpNetworkHeaderPrivate QHttpPartPrivate QNetworkCacheMetaDataPrivate QNetworkConfigurationPrivate QNetworkCookiePrivate QNetworkInterfacePrivate QNetworkProxyPrivate QNetworkProxyQueryPrivate QNetworkRequestPrivate QOCIRowId QPatternist::AtomicTypeVisitor QPatternist::AtomicTypeVisitorResult QPatternist::AtomicValue QPatternist::CallTargetDescription QPatternist::Expression QPatternist::ExpressionCreator QPatternist::ExpressionFactory QPatternist::ExpressionIdentifier QPatternist::ExpressionVisitor QPatternist::ExpressionVisitorResult QPatternist::ExternalVariableLoader QPatternist::FunctionArgument QPatternist::FunctionFactory QPatternist::ItemType QPatternist::NamePool QPatternist::NamespaceResolver QPatternist::NetworkAccessDelegator QPatternist::OptimizationPass QPatternist::ParameterizedAtomicTypeVisitor QPatternist::ParserContext QPatternist::QAbstractXmlReceiver QPatternist::ReferenceCountedValue< T > QPatternist::ReportContext QPatternist::ResourceLoader QPatternist::SchemaComponent QPatternist::SchemaTypeFactory QPatternist::SequenceType QPatternist::Template QPatternist::TemplateMode QPatternist::TemplatePattern QPatternist::TokenSource QPatternist::TraceCallback QPatternist::UserFunction QPatternist::VariableDeclaration QPatternist::XsdAttribute::Scope QPatternist::XsdAttribute::ValueConstraint QPatternist::XsdAttributeUse::ValueConstraint QPatternist::XsdComplexType::ContentType QPatternist::XsdComplexType::OpenContent QPatternist::XsdElement::Scope QPatternist::XsdElement::TypeTable QPatternist::XsdElement::ValueConstraint QPatternist::XsdIdCache QPatternist::XsdSchema QPatternist::XsdSchemaChecker QPatternist::XsdSchemaMerger QPatternist::XsdSchemaParserContext QPatternist::XsdSchemaResolver QPatternist::XsdStateMachineBuilder QPatternist::XsdWildcard::NamespaceConstraint QProcessEnvironmentPrivate QSslConfigurationPrivate QStyleSheetBackgroundData QStyleSheetBorderData QStyleSheetBorderImageData QStyleSheetBoxData QStyleSheetGeometryData QStyleSheetImageData QStyleSheetPaletteData QStyleSheetPositionData QSvgIconEnginePrivate QTextCursorPrivate QTextFormatPrivate QUnixSocketMessagePrivate QUnixSocketRightsPrivate QVideoFramePrivate QVideoSurfaceFormatPrivate QVolatileImageData QXmlSchemaPrivate QPatternist::ReferenceCountedValue< QAbstractMessageHandler > QPatternist::ReferenceCountedValue< QNetworkAccessManager > QPatternist::ReferenceCountedValue< QObject >

Public Functions

 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Public Variables

QAtomicInt ref
 

Private Functions

QSharedDataoperator= (const QSharedData &)
 

Detailed Description

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

Qt's base class for reference counting.

Note
This class or function is reentrant.

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

See QSharedDataPointer and QExplicitlySharedDataPointer for details.

Definition at line 56 of file qshareddata.h.

Constructors and Destructors

◆ QSharedData() [1/2]

QSharedData::QSharedData ( )
inline

Constructs a QSharedData object with a reference count of 0.

Definition at line 61 of file qshareddata.h.

61 : ref(0) { }
QAtomicInt ref
Definition: qshareddata.h:59

◆ QSharedData() [2/2]

QSharedData::QSharedData ( const QSharedData other)
inline

Constructs a QSharedData object with reference count 0.

other is ignored.

Definition at line 62 of file qshareddata.h.

62 : ref(0) { }
QAtomicInt ref
Definition: qshareddata.h:59

Functions

◆ operator=()

QSharedData& QSharedData::operator= ( const QSharedData )
private

Properties

◆ ref

QAtomicInt QSharedData::ref
mutable

The documentation for this class was generated from the following files: