![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qarraydata.h>
Public Types | |
| enum | AllocationOption { Grow , KeepSize } |
| enum | GrowthPosition { GrowsAtEnd , GrowsAtBeginning } |
| enum | ArrayOption { ArrayOptionDefault = 0 , CapacityReserved = 0x1 } |
Public Member Functions | |
| qsizetype | allocatedCapacity () noexcept |
| qsizetype | constAllocatedCapacity () const noexcept |
| bool | ref () noexcept |
| Returns true if sharing took place. | |
| bool | deref () noexcept |
| Returns false if deallocation is necessary. | |
| bool | isShared () const noexcept |
| bool | needsDetach () noexcept |
| qsizetype | detachCapacity (qsizetype newSize) const noexcept |
Static Public Member Functions | |
| static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate (QArrayData **pdata, qsizetype objectSize, qsizetype alignment, qsizetype capacity, AllocationOption optionoption=QArrayData::KeepSize) noexcept |
| static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate1 (QArrayData **pdata, qsizetype capacity, AllocationOption optionoption=QArrayData::KeepSize) noexcept |
| static Q_DECL_MALLOCLIKE Q_CORE_EXPORT void * | allocate2 (QArrayData **pdata, qsizetype capacity, AllocationOption optionoption=QArrayData::KeepSize) noexcept |
| static Q_CORE_EXPORT std::pair< QArrayData *, void * > | reallocateUnaligned (QArrayData *datadata, void *dataPointer, qsizetype objectSize, qsizetype newCapacity, AllocationOption optionoption) noexcept |
| static Q_CORE_EXPORT void | deallocate (QArrayData *datadata, qsizetype objectSize, qsizetype alignment) noexcept |
Public Attributes | |
| QBasicAtomicInt | ref_ |
| ArrayOptions | flags |
| qsizetype | alloc |
Definition at line 37 of file qarraydata.h.
| Enumerator | |
|---|---|
| Grow | |
| KeepSize | |
Definition at line 39 of file qarraydata.h.
| Enumerator | |
|---|---|
| ArrayOptionDefault | |
| CapacityReserved | the capacity was reserved by the user, try to keep it |
Definition at line 49 of file qarraydata.h.
| Enumerator | |
|---|---|
| GrowsAtEnd | |
| GrowsAtBeginning | |
Definition at line 44 of file qarraydata.h.
|
staticnoexcept |
Definition at line 190 of file qarraydata.cpp.
|
staticnoexcept |
Definition at line 202 of file qarraydata.cpp.
|
staticnoexcept |
Definition at line 209 of file qarraydata.cpp.
|
inlinenoexcept |
Definition at line 59 of file qarraydata.h.
|
inlinenoexcept |
Definition at line 66 of file qarraydata.h.
|
staticnoexcept |
Definition at line 249 of file qarraydata.cpp.
|
inlinenoexcept |
Returns false if deallocation is necessary.
Definition at line 81 of file qarraydata.h.
Definition at line 99 of file qarraydata.h.
|
inlinenoexcept |
Definition at line 86 of file qarraydata.h.
|
inlinenoexcept |
Definition at line 94 of file qarraydata.h.
|
staticnodiscardnoexcept |
Definition at line 217 of file qarraydata.cpp.
|
inlinenoexcept |
Returns true if sharing took place.
Definition at line 74 of file qarraydata.h.
| qsizetype QArrayData::alloc |
Definition at line 57 of file qarraydata.h.
| ArrayOptions QArrayData::flags |
Definition at line 56 of file qarraydata.h.
| QBasicAtomicInt QArrayData::ref_ |
Definition at line 55 of file qarraydata.h.