#include <qarraydata.h>
|
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate (QArrayData **pdata, qsizetype objectSize, qsizetype alignment, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept |
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate1 (QArrayData **pdata, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept |
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate2 (QArrayData **pdata, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept |
static Q_CORE_EXPORT std::pair< 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 |
Definition at line 26 of file qarraydata.h.
◆ AllocationOption
◆ ArrayOption
Enumerator |
---|
ArrayOptionDefault | |
CapacityReserved | the capacity was reserved by the user, try to keep it
|
Definition at line 38 of file qarraydata.h.
◆ GrowthPosition
Enumerator |
---|
GrowsAtEnd | |
GrowsAtBeginning | |
Definition at line 33 of file qarraydata.h.
◆ allocate()
◆ allocate1()
◆ allocate2()
◆ allocatedCapacity()
◆ constAllocatedCapacity()
qsizetype QArrayData::constAllocatedCapacity |
( |
| ) |
const |
|
inlinenoexcept |
◆ deallocate()
◆ deref()
bool QArrayData::deref |
( |
| ) |
|
|
inlinenoexcept |
Returns false if deallocation is necessary.
Definition at line 66 of file qarraydata.h.
◆ detachCapacity()
◆ isShared()
bool QArrayData::isShared |
( |
| ) |
const |
|
inlinenoexcept |
◆ needsDetach()
bool QArrayData::needsDetach |
( |
| ) |
|
|
inlinenoexcept |
◆ reallocateUnaligned()
◆ ref()
Returns true if sharing took place.
Definition at line 59 of file qarraydata.h.
◆ alloc
◆ flags
ArrayOptions QArrayData::flags |
◆ ref_
The documentation for this struct was generated from the following files: