Smart Pointers: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(add QScopedArrayPointer)
(Cleanup)
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
{{LangSwitch}}
 
[[Category:Developing_with_Qt::General]]
[[Category:Developing_with_Qt::General]]
'''English''' [[Smart_Pointers_Bulgarian|Български]] [[Smart_Pointers_Russian|Русский]]
= Smart Pointers =
== Purpose ==
== 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.
A 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 ==
== Smart Pointers in Qt ==


* [http://doc.qt.io/qt-5/qpointer.html QPointer]
* {{DocLink|QPointer}}
* [http://doc.qt.io/qt-5/qshareddatapointer.html QSharedDataPointer]
* {{DocLink|QSharedDataPointer}}
* [http://doc.qt.io/qt-5/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer]
* {{DocLink|QExplicitlySharedDataPointer}}
* QtPatternist::AutoPtr (internal class)
* QtPatternist::AutoPtr (internal class)
* [http://doc.qt.io/qt-5/qsharedpointer.html QSharedPointer]
* {{DocLink|QSharedPointer}}
* [http://doc.qt.io/qt-5/qweakpointer.html QWeakPointer]
* {{DocLink|QWeakPointer}}
* QGuard (internal class)
* QGuard (internal class)
* [http://doc.qt.io/qt-5/qscopedpointer.html QScopedPointer]
* {{DocLink|QScopedPointer}}
* [http://doc.qt.io/qt-5/qscopedarraypointer.html QScopedArrayPointer]
* {{DocLink|QScopedArrayPointer}}


= 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?]
[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]
[http://en.wikipedia.org/wiki/Smart_pointers Smart Pointer]

Revision as of 22:28, 27 June 2015

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Purpose

A 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

See also

Count with me: how many smart pointer classes does Qt have?

References

Smart Pointer