Smart Pointers: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Add "cleanup" tag) |
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
||
Line 13: | Line 13: | ||
== Smart Pointers in Qt == | == Smart Pointers in Qt == | ||
* | * [http://doc.qt.io/latest/qpointer.html QPointer] | ||
* | * [http://doc.qt.io/latest/qshareddatapointer.html QSharedDataPointer] | ||
* | * [http://doc.qt.io/latest/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer] | ||
* QtPatternist::AutoPtr (internal class) | * QtPatternist::AutoPtr (internal class) | ||
* | * [http://doc.qt.io/latest/qsharedpointer.html QSharedPointer] | ||
* | * [http://doc.qt.io/latest/qweakpointer.html QWeakPointer] | ||
* QGuard (internal class) | * QGuard (internal class) | ||
* | * [http://doc.qt.io/latest/qscopedpointer.html QScopedPointer] | ||
= See also = | = See also = | ||
[http://blog.qt.io/blog/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/ Count with me: how many smart pointer classes does Qt have?] | |||
= References = | = References = | ||
[http://en.wikipedia.org/wiki/Smart_pointers Smart Pointer] |
Revision as of 15:42, 4 March 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?