Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Smart Pointers/bg: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
== Умни указатели в Qt ==
== Умни указатели в Qt ==


* "QPointer":http://doc.qt.nokia.com/latest/qpointer.html
* "QPointer":http://doc.qt.nokia.com/latest/qpointer.html
* "QSharedDataPointer":http://doc.qt.nokia.com/latest/qshareddatapointer.html
* "QSharedDataPointer":http://doc.qt.nokia.com/latest/qshareddatapointer.html
* "QExplicitlySharedDataPointer":http://doc.qt.nokia.com/latest/qexplicitlyshareddatapointer.html
* "QExplicitlySharedDataPointer":http://doc.qt.nokia.com/latest/qexplicitlyshareddatapointer.html
* QtPatternist::AutoPtr (internal class)
* QtPatternist::AutoPtr (internal class)
* "QSharedPointer":http://doc.qt.nokia.com/latest/qsharedpointer.html
* "QSharedPointer":http://doc.qt.nokia.com/latest/qsharedpointer.html
* "QWeakPointer":http://doc.qt.nokia.com/latest/qweakpointer.html
* "QWeakPointer":http://doc.qt.nokia.com/latest/qweakpointer.html
* QGuard (internal class)
* QGuard (internal class)
* "QScopedPointer":http://doc.qt.nokia.com/latest/qscopedpointer.html
* "QScopedPointer":http://doc.qt.nokia.com/latest/qscopedpointer.html


= Вижте още =
= Вижте още =


"Count with me: how many smart pointer classes does Qt have?":http://labs.qt.nokia.com/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://labs.qt.nokia.com/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/


= Източници =
= Източници =


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

Revision as of 06:44, 25 February 2015


Български English

Smart Pointers (Умни указатели)

Цел

Т.нар. умен указател e абстрактен тип данни, който има притежава всички функционалсти на стандартния указател и освен това осигурява автоматично изтриване (освобождаване на паметта). Умните указатели улесняват операциите, свързани с динамичното управление на паметта. Основното им предимство е намаляване на проблеми при работа с паметта и други проблеми, държащи се на лошо управление на стандартните указатели.

Умни указатели в Qt

Вижте още

"Count with me: how many smart pointer classes does Qt have?":http://labs.qt.nokia.com/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/

Източници

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