Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QVLABaseBase Class Reference

#include <qvarlengtharray.h>

Inherited by QVLABase< KeyValuePair >, QVLABase< void * >, QVLABase< QQmlSA::Element >, QVLABase< EGLImageKHR >, QVLABase< float >, QVLABase< PerQuadData >, QVLABase< QMacNotificationObserver >, QVLABase< QByteArray >, QVLABase< QRhiBufferData >, QVLABase< QImage >, QVLABase< ResId >, QVLABase< QRhiShaderResourceBinding >, QVLABase< QD3D11ShaderResourceBindings::BoundResourceData >, QVLABase< QRhiBatchedBindings::Batch >, QVLABase< int >, QVLABase< QRhiPassResourceTracker >, QVLABase< QGles2UniformDescription >, QVLABase< QGles2SamplerDescription >, QVLABase< QRingBuffer >, QVLABase< QMetalBufferData::BufferUpdate >, QVLABase< QMetalShaderResourceBindings::BoundResourceData >, QVLABase< QMetalShaderResourceBindingsData::Stage::Buffer >, QVLABase< QMetalShaderResourceBindingsData::Stage::Texture >, QVLABase< QMetalShaderResourceBindingsData::Stage::Sampler >, QVLABase< std::array< QImage, QRhi::MAX_MIP_LEVELS > >, QVLABase< GLuint >, QVLABase< QOpenGLFramebufferObjectPrivate::ColorAttachment >, QVLABase< QPainterPrivate * >, QVLABase< QQmlBindEntry >, QVLABase< QQuick3DShaderUtilsShader * >, QVLABase< QPointF >, QVLABase< QQuickItem * >, QVLABase< QQuickParticlePainter * >, QVLABase< QQuickParticleGroupData::ID >, QVLABase< QQuickParticleGroupData * >, QVLABase< QQuickTextNodeEngine::BinaryTreeNode >, QVLABase< QReadWriteLockPrivate::Reader >, QVLABase< quint8 >, QVLABase< QRhiD3D11::TextureReadback >, QVLABase< QRhiD3D11::BufferReadback >, QVLABase< QRhiGraphicsPipeline::TargetBlend >, QVLABase< QRhiShaderStage >, QVLABase< QRhiResourceUpdateBatch * >, QVLABase< QRhi::CleanupCallback >, QVLABase< QRhiMetalData::TextureReadback >, QVLABase< QRhiMetalData::BufferReadback >, QVLABase< QRhiResourceUpdateBatchPrivate::BufferOp >, QVLABase< QRhiResourceUpdateBatchPrivate::TextureOp >, QVLABase< MipLevelUploadList >, QVLABase< QRhiColorAttachment >, QVLABase< QRhiTextureUploadEntry >, QVLABase< QRhiVertexInputBinding >, QVLABase< QRhiVertexInputAttribute >, QVLABase< QRhiVulkan::DescriptorPoolData >, QVLABase< VkCommandBuffer >, QVLABase< QRhiVulkan::TextureReadback >, QVLABase< QRhiVulkan::BufferReadback >, QVLABase< QSGBatchRenderer::Renderer::PreparedRenderBatch >, QVLABase< Pipeline >, QVLABase< QSGTexture * >, QVLABase< QRhiSampler * >, QVLABase< QSSGRenderPass * >, QVLABase< QSSGShaderLight >, QVLABase< QRhiTextureRenderTarget * >, QVLABase< QRhiShaderResourceBindings * >, QVLABase< QSSGRenderLight * >, QVLABase< InputSemantic >, QVLABase< QSSGRhiShaderUniform >, QVLABase< QSSGRhiShaderUniformArray >, QVLABase< QSSGRhiShadowMapProperties >, QVLABase< QSSGRhiTexture >, QVLABase< QSSGRhiShaderPipeline::CommonUniformIndices::ImageIndices >, QVLABase< Node * >, QVLABase< QList< int > >, QVLABase< QList< QImage > >, QVLABase< QPainterPath::ElementType >, QVLABase< qreal >, QVLABase< QVkBuffer::DynamicUpdate >, QVLABase< VkClearValue >, QVLABase< VkBufferImageCopy >, QVLABase< uint32_t >, QVLABase< VkBuffer >, QVLABase< VkDeviceSize >, QVLABase< VkImageMemoryBarrier >, QVLABase< VkBufferMemoryBarrier >, QVLABase< VkAttachmentDescription >, QVLABase< VkAttachmentReference >, QVLABase< VkSubpassDependency >, QVLABase< QVkShaderResourceBindings::BoundResourceData >, QVLABase< VkPresentModeKHR >, QVLABase< QVkSwapChain::ImageResources >, QVLABase< const QtPrivate::QPropertyBindingData * >, and QVLABase< T >.

+ Collaboration diagram for QVLABaseBase:

Classes

struct  free_deleter
 

Public Types

using size_type = qsizetype
 

Public Member Functions

constexpr size_type capacity () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr bool empty () const noexcept
 

Protected Types

using malloced_ptr = std::unique_ptr< void, free_deleter >
 

Protected Member Functions

 ~QVLABaseBase ()=default
 
Q_ALWAYS_INLINE constexpr void verify (qsizetype pos=0, qsizetype n=1) const
 

Protected Attributes

qsizetype a
 
qsizetype s
 
voidptr
 

Detailed Description

Definition at line 46 of file qvarlengtharray.h.

Member Typedef Documentation

◆ malloced_ptr

using QVLABaseBase::malloced_ptr = std::unique_ptr<void, free_deleter>
protected

Definition at line 67 of file qvarlengtharray.h.

◆ size_type

Definition at line 70 of file qvarlengtharray.h.

Constructor & Destructor Documentation

◆ ~QVLABaseBase()

QVLABaseBase::~QVLABaseBase ( )
protecteddefault

Member Function Documentation

◆ capacity()

constexpr size_type QVLABaseBase::capacity ( ) const
inlineconstexprnoexcept

Definition at line 72 of file qvarlengtharray.h.

References a.

Referenced by QVLABase< T >::emplace_back_impl(), QVLABase< T >::resize_impl(), and QVLABase< T >::resize_impl().

+ Here is the caller graph for this function:

◆ empty()

constexpr bool QVLABaseBase::empty ( ) const
inlineconstexprnoexcept

Definition at line 74 of file qvarlengtharray.h.

References size().

Referenced by QVarLengthArray< T, Prealloc >::isEmpty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

constexpr size_type QVLABaseBase::size ( ) const
inlineconstexprnoexcept

Definition at line 73 of file qvarlengtharray.h.

References s.

Referenced by QVarLengthGlyphLayoutArray::QVarLengthGlyphLayoutArray(), QQuickTextNodeEngine::addGlyphsForRanges(), QFontEngine::addOutlineToPath(), QSSGRenderReflectionMap::addReflectionMapEntry(), QSSGRenderShadowMap::addShadowMapEntry(), QQuickSwipeDelegatePrivate::attachedObjectsSetPressed(), QTextEngine::attributes(), QRhiVulkan::beginPass(), QRhiGles2::bindShaderResources(), QSctpSocketPrivate::canReadNotification(), QODBCDriverPrivate::checkDBMS(), QODBCDriverPrivate::checkHasMultiResults(), QVLABase< T >::clear(), QQuickDeliveryAgentPrivate::clearFocusInScope(), QSqlQueryModelPrivate::columnInQuery(), QOpenGLShader::compileSourceCode(), QObject::connect(), QGles2ShaderResourceBindings::create(), QGles2GraphicsPipeline::create(), QVkShaderResourceBindings::create(), QVkGraphicsPipeline::create(), QRhiVulkan::createOffscreenRenderPass(), createValueTypeFromNumberString(), QRhiVulkan::debugMarkBegin(), QRhiVulkan::debugMarkMsg(), QQmlBindPrivate::decodeBinding(), QRhiVulkan::depthStencilExplicitBarrier(), QObject::disconnect(), QRhiGles2::dispatch(), QRhiVulkan::dispatch(), QCoreTextFontEngine::draw(), QFontEngineBox::draw(), draw_text_item_win(), QPaintEnginePrivate::drawBoxTextItem(), QQC2::QWindowsXPStyle::drawComplexControl(), QWindowsVistaStyle::drawComplexControl(), QPainterPrivate::drawGlyphs(), drawPolygons(), QRasterPaintEngine::drawTextItem(), QOpenGL2PaintEngineEx::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QQuickTrailEmitter::emitWindow(), QVLABase< T >::emplace_back_impl(), empty(), QVLABase< T >::end(), QVLABase< T >::end(), QRhiGles2::enqueueBarriersForPass(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QSGRhiAtlasTexture::Atlas::enqueueTextureUpload(), QRhiVulkan::enqueueTransitionPassResources(), QQmlBindPrivate::evalDelayed(), QDB2Result::exec(), QOpenGL2PaintEngineExPrivate::fill(), fillRenderPassCreateInfo(), findTextEntry(), QBackingStoreDefaultCompositor::flush(), QFontEngine::getGlyphPositions(), QSSGRenderer::getLayerHitObjectList(), glyphRunWithInfo(), QVLABase< T >::growBy(), importImp(), init(), QSqlQueryModelPrivate::initColOffsets(), QQuickTextNodeEngine::BinaryTreeNode::inOrder(), QQuickTextNodeEngine::BinaryTreeNode::insert(), QVkRenderPassDescriptor::isCompatible(), isProcessLowIntegrity(), QTextureFileData::isValid(), QTextEngine::itemize(), QTextDocumentLayoutPrivate::layoutTable(), QXkbCommon::lookupString(), QXkbCommon::lookupStringNoKeysymTransformations(), makeDistanceField(), QTransform::map(), QQuickParticleSystem::newDatum(), QRhi::nextResourceUpdateBatch(), QODBCDriver::open(), QVLABase< T >::pop_back(), QSSGShaderCustomMaterialAdapter::prepareCustomShader(), QSSGLayerRenderData::prepareForRender(), QQuickImageParticle::prepareNextFrame(), printMethodNotFoundWarning(), qAppFileName(), QQC2::qDrawBorderPixmap(), QSGSoftwareHelpers::qDrawBorderPixmap(), qEnvironmentVariable(), qGetBinaryData(), qMakeFieldInfo(), QQuick3DShaderUtilsRenderPass::qmlShaderCount(), qWarnODBCHandle(), QWindowsFontEngineDirectWrite::recalcAdvances(), QQuickParticleSystem::registerParticleGroupData(), QQuickParticleVarLengthArray< T, Prealloc >::removeOne(), QCoreApplication::removePostedEvents(), QVarLengthGlyphLayoutArray::resize(), QVLABase< T >::resize_impl(), QVLABase< T >::resize_impl(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), RenderHelpers::rhiRenderShadowMap(), scaledRegion(), QSGAreaAllocator::serialize(), QIODevicePrivate::setCurrentReadChannel(), QIODevicePrivate::setCurrentWriteChannel(), QQmlBind::setDelayed(), QQuickItem::setFocus(), QQuickDeliveryAgentPrivate::setFocusInScope(), QQmlProfilerEvent::setNumber(), QIODevicePrivate::setReadChannelCount(), QRhiGles2::setShaderResources(), QRhiMetal::setShaderResources(), QRhiVulkan::setShaderResources(), QSSGRhiShaderPipeline::setUniform(), QSSGRhiShaderPipeline::setUniformArray(), setupInstancing(), QRhiVulkan::setVertexInput(), QIODevicePrivate::setWriteChannelCount(), QRhiNull::simulateTextureUpload(), QLocaleData::stringToDouble(), QLocaleData::stringToLongLong(), QLocaleData::stringToUnsLongLong(), QRhiVulkan::subresourceBarrier(), QRhiVulkan::trackedBufferBarrier(), QRhiVulkan::trackedImageBarrier(), QSGDistanceFieldGlyphNode::updateGeometry(), QSGBasicInternalImageNode::updateGeometry(), QVkShaderResourceBindings::updateResources(), QVkRenderPassDescriptor::updateSerializedFormat(), QRhiVulkan::updateShaderResourceBindings(), QQmlBindPrivate::validate(), verify(), QmlIR::IRBuilder::visit(), QDBusMetaObjectGenerator::write(), and QSctpSocketPrivate::writeToSocket().

◆ verify()

Q_ALWAYS_INLINE constexpr void QVLABaseBase::verify ( qsizetype  pos = 0,
qsizetype  n = 1 
) const
inlineconstexprprotected

Definition at line 55 of file qvarlengtharray.h.

References pos, Q_ASSERT, and size().

Referenced by QVLABase< T >::back(), QVLABase< T >::back(), QVarLengthArray< KeyValuePair, 8 >::contains(), QVLABase< T >::front(), QVLABase< T >::front(), QVarLengthArray< T, Prealloc >::insert(), QVarLengthArray< T, Prealloc >::insert(), QVarLengthArray< T, Prealloc >::insert(), QVLABase< T >::operator[](), QVLABase< T >::operator[](), QVLABase< T >::pop_back(), QVLABase< T >::remove(), and QVLABase< T >::replace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ a

qsizetype QVLABaseBase::a
protected

Definition at line 51 of file qvarlengtharray.h.

Referenced by capacity().

◆ ptr

void* QVLABaseBase::ptr
protected

◆ s


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