<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /tmp/qt-4.3.4-qt-1203442408707/qt-x11-opensource-src-4.3.4/src/corelib/tools/qshareddata.cpp --> <head> <title>Qt 4.3: QSharedData Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">QSharedData Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1> <p>The QSharedData class is a base class for shared data objects. <a href="#details">More...</a></p> <pre> #include <QSharedData></pre><p>Inherited by <a href="qscript-argumentsobjectdata.html">QScript::ArgumentsObjectData</a>, <a href="qscript-c2function.html">QScript::C2Function</a>, <a href="qscript-cfunction.html">QScript::CFunction</a>, <a href="qscript-ecma-core.html">QScript::Ecma::Core</a>, <a href="qscript-ecma-global.html">QScript::Ecma::Global</a>, <a href="qscript-ecma-math.html">QScript::Ecma::Math</a>, <a href="qscript-ext-enumerationclassdata.html">QScript::Ext::EnumerationClassData</a>, <a href="qscript-memorypool.html">QScript::MemoryPool</a>, <a href="qscript-qtfunction.html">QScript::QtFunction</a>, <a href="qscript-scriptfunction.html">QScript::ScriptFunction</a>, </p> <p><b>Note:</b> All the functions in this class are <a href="threads.html#reentrant">reentrant</a>.</p> <ul> <li><a href="qshareddata-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h3>Public Functions</h3> <ul> <li><div class="fn"/><b><a href="qshareddata.html#QSharedData">QSharedData</a></b> ()</li> <li><div class="fn"/><b><a href="qshareddata.html#QSharedData-2">QSharedData</a></b> ( const QSharedData & <i>other</i> )</li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QSharedData class is a base class for shared data objects.</p> <p>QSharedData is designed to be used together with <a href="qshareddatapointer.html">QSharedDataPointer</a> to implement custom <a href="shared.html#implicitly-shared">implicitly shared</a> classes. It provides thread-safe reference counting.</p> <p>See the <a href="qshareddatapointer.html">QSharedDataPointer</a> documentation for details.</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="QSharedData"></a>QSharedData::QSharedData ()</h3> <p>Constructs a <a href="qshareddata.html">QSharedData</a> object with a reference count of 0.</p> <h3 class="fn"><a name="QSharedData-2"></a>QSharedData::QSharedData ( const QSharedData & <i>other</i> )</h3> <p>Constructs a <a href="qshareddata.html">QSharedData</a> object with a reference count of 0. (<i>other</i> is ignored.)</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="30%">Copyright © 2008 <a href="trolltech.html">Trolltech</a></td> <td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="30%" align="right"><div align="right">Qt 4.3.4</div></td> </tr></table></div></address></body> </html>