QtBase
v6.3.1
|
#include <qarraydata.h>
Classes | |
struct | AlignmentDummy |
Static Public Member Functions | |
static QPair< QTypedArrayData *, T * > | allocate (qsizetype capacity, AllocationOption option=QArrayData::KeepSize) |
static QPair< QTypedArrayData *, T * > | reallocateUnaligned (QTypedArrayData *data, T *dataPointer, qsizetype capacity, AllocationOption option) |
static void | deallocate (QArrayData *data) noexcept |
static T * | dataStart (QArrayData *data, qsizetype alignment) noexcept |
Static Public Member Functions inherited from QArrayData | |
static Q_CORE_EXPORT void * | allocate (QArrayData **pdata, qsizetype objectSize, qsizetype alignment, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept |
static Q_CORE_EXPORT QPair< QArrayData *, void * > | reallocateUnaligned (QArrayData *data, void *dataPointer, qsizetype objectSize, qsizetype newCapacity, AllocationOption option) noexcept |
static Q_CORE_EXPORT void | deallocate (QArrayData *data, qsizetype objectSize, qsizetype alignment) noexcept |
Additional Inherited Members | |
Public Types inherited from QArrayData | |
enum | AllocationOption { Grow , KeepSize } |
enum | GrowthPosition { GrowsAtEnd , GrowsAtBeginning } |
enum | ArrayOption { ArrayOptionDefault = 0 , CapacityReserved = 0x1 } |
Public Member Functions inherited from QArrayData | |
qsizetype | allocatedCapacity () noexcept |
qsizetype | constAllocatedCapacity () const noexcept |
bool | ref () noexcept |
Returns true if sharing took place. More... | |
bool | deref () noexcept |
Returns false if deallocation is necessary. More... | |
bool | isShared () const noexcept |
bool | needsDetach () const noexcept |
qsizetype | detachCapacity (qsizetype newSize) const noexcept |
Public Attributes inherited from QArrayData | |
QBasicAtomicInt | ref_ |
ArrayOptions | flags |
qsizetype | alloc |
Definition at line 132 of file qarraydata.h.
|
inlinestatic |
Definition at line 137 of file qarraydata.h.
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
Definition at line 157 of file qarraydata.h.
|
inlinestatic |
Definition at line 149 of file qarraydata.h.