Smart Pointers: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
(fix broken links to documentation) |
||
Line 13: | Line 13: | ||
== Smart Pointers in Qt == | == Smart Pointers in Qt == | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qpointer.html QPointer] | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qshareddatapointer.html QSharedDataPointer] | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer] | ||
* QtPatternist::AutoPtr (internal class) | * QtPatternist::AutoPtr (internal class) | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qsharedpointer.html QSharedPointer] | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qweakpointer.html QWeakPointer] | ||
* QGuard (internal class) | * QGuard (internal class) | ||
* [http://doc.qt.io/ | * [http://doc.qt.io/qt-5/qscopedpointer.html QScopedPointer] | ||
= See also = | = See also = |
Revision as of 08:35, 15 April 2015
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine. Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean. |
Smart Pointers
Purpose
Smart pointer is an abstract data type that has all features of a standard pointer and additionally provides automatic garbage collection. Smart pointers facilitate the dynamic memory operations. Their main advantage is reducing memory leaks and bugs due to poor memory management.
Smart Pointers in Qt
- QPointer
- QSharedDataPointer
- QExplicitlySharedDataPointer
- QtPatternist::AutoPtr (internal class)
- QSharedPointer
- QWeakPointer
- QGuard (internal class)
- QScopedPointer
See also
Count with me: how many smart pointer classes does Qt have?