QScopedArrayPointer Class ReferenceThe QScopedArrayPointer class stores a pointer to a dynamically allocated array of objects, and deletes it upon destruction. Далее... #include <QScopedArrayPointer> Inherits: QScopedPointer<T, Cleanup>. Замечание: Все функции в этом классе реентерабельны. Этот класс был введён в Qt 4.6. Открытые функции
Подробное описаниеThe QScopedArrayPointer class stores a pointer to a dynamically allocated array of objects, and deletes it upon destruction. A QScopedArrayPointer is a QScopedPointer that defaults to deleting the object it is pointing to with the delete[] operator. It also features operator[] for convenience, so we can write: void foo() { QScopedArrayPointer<int> i(new int[10]); i[2] = 42; ... return; // our integer array is now deleted using delete[] } Описание функций-членовQScopedArrayPointer::QScopedArrayPointer ()Constructs a QScopedArrayPointer instance. QScopedArrayPointer::QScopedArrayPointer ( D * p, QtPrivate::QScopedArrayEnsureSameType<T, D>::Type = 0 )T & QScopedArrayPointer::operator[] ( int i )Provides access to entry i of the scoped pointer's array of objects. If the contained pointer is null, behavior is undefined. Смотрите также isNull(). const T & QScopedArrayPointer::operator[] ( int i ) constProvides access to entry i of the scoped pointer's array of objects. If the contained pointer is null, behavior is undefined. Смотрите также isNull(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |