qt5base-lts/tests/auto/corelib/tools/tools.pro
João Abecasis bce08ba220 Introducing QArrayData
Modeled on QByteArrayData/QStringData/QVectorData, the intent is to
unify book-keeping structs for array-like data and enable sharing of
code among them.

As in those structures, size (and alloc) data member(s) specify the
number of *typed* elements the array does (and can) hold.  The size or
alignment requirements of those objects is not tracked in this data
structure and needs to be maintained by its users.

Contrary to QByteArrayData and QStringData, QArrayData's offset member
keeps a *byte* offset to the actual data array and is computed from the
beginning of the struct.

Shared-null and -empty functionality is provided by QArrayData and
shared among all users.

Planned features include setSharable (force deep copies), fromRawData
(detached header and data allocations) and literals a la QStringLiteral
(static immutable instances), thus covering the functionality needed for
QByteArray, QString and QVector.

Change-Id: I9aa709dbb675442e6d06965efb8138ab84602bbd
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2011-12-06 16:57:17 +01:00

46 lines
751 B
Prolog

TEMPLATE=subdirs
SUBDIRS=\
qalgorithms \
qarraydata \
qbitarray \
qbytearray \
qbytearraymatcher \
qcache \
qchar \
qcontiguouscache \
qcryptographichash \
qdate \
qdatetime \
qeasingcurve \
qelapsedtimer \
qexplicitlyshareddatapointer \
qfreelist \
qhash \
qline \
qlist \
qlocale \
qmap \
qmargins \
qpoint \
qqueue \
qrect \
qregexp \
qringbuffer \
qscopedpointer \
qscopedvaluerollback \
qset \
qsharedpointer \
qsize \
qsizef \
qstl \
qstring \
qstringbuilder \
qstringlist \
qstringmatcher \
qstringref \
qtextboundaryfinder \
qtime \
qtimeline \
qvarlengtharray \
qvector