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
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Add "cleanup" tag) |
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
||
Line 13: | Line 13: | ||
== Умни указатели в Qt == | == Умни указатели в Qt == | ||
* | * [http://doc.qt.nokia.com/latest/qpointer.html QPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qshareddatapointer.html QSharedDataPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qexplicitlyshareddatapointer.html QExplicitlySharedDataPointer] | ||
* QtPatternist::AutoPtr (internal class) | * QtPatternist::AutoPtr (internal class) | ||
* | * [http://doc.qt.nokia.com/latest/qsharedpointer.html QSharedPointer] | ||
* | * [http://doc.qt.nokia.com/latest/qweakpointer.html QWeakPointer] | ||
* QGuard (internal class) | * QGuard (internal class) | ||
* | * [http://doc.qt.nokia.com/latest/qscopedpointer.html QScopedPointer] | ||
= Вижте още = | = Вижте още = | ||
[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://en.wikipedia.org/wiki/Smart_pointers Smart Pointer] |
Revision as of 15:43, 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. |
Български English
Smart Pointers (Умни указатели)
Цел
Т.нар. умен указател e абстрактен тип данни, който има притежава всички функционалсти на стандартния указател и освен това осигурява автоматично изтриване (освобождаване на паметта). Умните указатели улесняват операциите, свързани с динамичното управление на паметта. Основното им предимство е намаляване на проблеми при работа с паметта и други проблеми, държащи се на лошо управление на стандартните указатели.
Умни указатели в Qt
- QPointer
- QSharedDataPointer
- QExplicitlySharedDataPointer
- QtPatternist::AutoPtr (internal class)
- QSharedPointer
- QWeakPointer
- QGuard (internal class)
- QScopedPointer
Вижте още
Count with me: how many smart pointer classes does Qt have?