Smart Pointers: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [[Smart Pointers Bulgarian|Български]] [[Smart Pointers Russian|Русский]]
[[Category:Developing_with_Qt::General]]


=Smart Pointers=
'''English''' [[Smart_Pointers_Bulgarian|Български]] [[Smart_Pointers_Russian|Русский]]


==Purpose==
= 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 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/latest/qpointer.html QPointer] ''[qt.io]''
* "QPointer":http://doc.qt.io/latest/qpointer.html
* [http://doc.qt.io/latest/qshareddatapointer.html QSharedDataPointer] ''[qt.io]''
* "QSharedDataPointer":http://doc.qt.io/latest/qshareddatapointer.html
* [http://doc.qt.io/latest/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer] ''[qt.io]''
* "QExplicitlySharedDataPointer":http://doc.qt.io/latest/qexplicitlyshareddatapointer.html
* QtPatternist::AutoPtr (internal class)
* QtPatternist::AutoPtr (internal class)
* [http://doc.qt.io/latest/qsharedpointer.html QSharedPointer] ''[qt.io]''
* "QSharedPointer":http://doc.qt.io/latest/qsharedpointer.html
* [http://doc.qt.io/latest/qweakpointer.html QWeakPointer] ''[qt.io]''
* "QWeakPointer":http://doc.qt.io/latest/qweakpointer.html
* QGuard (internal class)
* QGuard (internal class)
* [http://doc.qt.io/latest/qscopedpointer.html QScopedPointer] ''[qt.io]''
* "QScopedPointer":http://doc.qt.io/latest/qscopedpointer.html
 
=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?] ''[blog.qt.io]''


=References=
= See also =


[http://en.wikipedia.org/wiki/Smart_pointers Smart Pointer] ''[en.wikipedia.org]''<br />[http://www.anavi.org/article/110/ Boost Shared Pointer] ''[anavi.org]''
&quot;Count with me: how many smart pointer classes does Qt have?&quot;:http://blog.qt.io/blog/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/


===Categories:===
= References =


* [[:Category:Developing with Qt|Developing_with_Qt]]
&quot;Smart Pointer&amp;quot;:http://en.wikipedia.org/wiki/Smart_pointers
** [[:Category:Developing with Qt::General|General]]

Revision as of 14:41, 23 February 2015


English Български Русский

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

See also

"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/

References

"Smart Pointer&quot;:http://en.wikipedia.org/wiki/Smart_pointers