Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QTypedArrayData< T > Struct Template Reference

#include <qarraydata.h>

Inheritance diagram for QTypedArrayData< T >:
Collaboration diagram for QTypedArrayData< T >:

Classes

struct  AlignmentDummy

Static Public Member Functions

static std::pair< QTypedArrayData *, T * > allocate (qsizetype capacity, AllocationOption option=QArrayData::KeepSize)
static std::pair< 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 constexpr qsizetype maxSize () noexcept
static constexpr qsizetype max_size () noexcept
Static Public Member Functions inherited from QArrayData
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT voidallocate (QArrayData **pdata, qsizetype objectSize, qsizetype alignment, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT voidallocate1 (QArrayData **pdata, qsizetype capacity, AllocationOption option=QArrayData::KeepSize) noexcept
static Q_DECL_MALLOCLIKE Q_CORE_EXPORT voidallocate2 (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

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.
bool deref () noexcept
 Returns false if deallocation is necessary.
bool isShared () const noexcept
bool needsDetach () noexcept
qsizetype detachCapacity (qsizetype newSize) const noexcept
Public Attributes inherited from QArrayData
QBasicAtomicInt ref_
ArrayOptions flags
qsizetype alloc

Detailed Description

template<class T>
struct QTypedArrayData< T >

Definition at line 126 of file qarraydata.h.

Member Function Documentation

◆ allocate()

template<class T>
std::pair< QTypedArrayData *, T * > QTypedArrayData< T >::allocate ( qsizetype capacity,
AllocationOption option = QArrayData::KeepSize )
inlinestaticnodiscard

Definition at line 131 of file qarraydata.h.

◆ dataStart()

template<class T>
T * QTypedArrayData< T >::dataStart ( QArrayData * data,
qsizetype alignment )
inlinestaticnoexcept

Definition at line 167 of file qarraydata.h.

◆ deallocate()

template<class T>
void QTypedArrayData< T >::deallocate ( QArrayData * data)
inlinestaticnoexcept

Definition at line 161 of file qarraydata.h.

◆ max_size()

template<class T>
constexpr qsizetype QTypedArrayData< T >::max_size ( )
inlinestaticconstexprnoexcept

Definition at line 181 of file qarraydata.h.

◆ maxSize()

template<class T>
constexpr qsizetype QTypedArrayData< T >::maxSize ( )
inlinestaticconstexprnoexcept

Definition at line 176 of file qarraydata.h.

◆ reallocateUnaligned()

template<class T>
std::pair< QTypedArrayData *, T * > QTypedArrayData< T >::reallocateUnaligned ( QTypedArrayData< T > * data,
T * dataPointer,
qsizetype capacity,
AllocationOption option )
inlinestatic

Definition at line 153 of file qarraydata.h.


The documentation for this struct was generated from the following file: