Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSGBatchRenderer::Allocator< Type, PageSize > Class Template Reference

#include <qsgbatchrenderer_p.h>

+ Collaboration diagram for QSGBatchRenderer::Allocator< Type, PageSize >:

Public Member Functions

 Allocator ()
 
 ~Allocator ()
 
Typeallocate ()
 
void releaseExplicit (uint pageIndex, uint index)
 
void release (Type *t)
 

Public Attributes

QVector< AllocatorPage< Type, PageSize > * > pages
 
int m_freePage = 0
 

Detailed Description

template<typename Type, int PageSize>
class QSGBatchRenderer::Allocator< Type, PageSize >

Definition at line 88 of file qsgbatchrenderer_p.h.

Constructor & Destructor Documentation

◆ Allocator()

template<typename Type , int PageSize>
QSGBatchRenderer::Allocator< Type, PageSize >::Allocator ( )
inline

◆ ~Allocator()

template<typename Type , int PageSize>
QSGBatchRenderer::Allocator< Type, PageSize >::~Allocator ( )
inline

Definition at line 96 of file qsgbatchrenderer_p.h.

References QSGBatchRenderer::Allocator< Type, PageSize >::pages, and qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ allocate()

template<typename Type , int PageSize>
Type * QSGBatchRenderer::Allocator< Type, PageSize >::allocate ( )
inline

◆ release()

template<typename Type , int PageSize>
void QSGBatchRenderer::Allocator< Type, PageSize >::release ( Type * t)
inline

Definition at line 156 of file qsgbatchrenderer_p.h.

References QByteArray::data(), i, page, QSGBatchRenderer::Allocator< Type, PageSize >::pages, Q_ASSERT, and QSGBatchRenderer::Allocator< Type, PageSize >::releaseExplicit().

+ Here is the call graph for this function:

◆ releaseExplicit()

template<typename Type , int PageSize>
void QSGBatchRenderer::Allocator< Type, PageSize >::releaseExplicit ( uint pageIndex,
uint index )
inline

Definition at line 129 of file qsgbatchrenderer_p.h.

References QByteArray::at(), QSGBatchRenderer::Allocator< Type, PageSize >::m_freePage, page, QSGBatchRenderer::Allocator< Type, PageSize >::pages, and qFatal.

Referenced by QSGBatchRenderer::Allocator< Type, PageSize >::release().

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

Member Data Documentation

◆ m_freePage

template<typename Type , int PageSize>
int QSGBatchRenderer::Allocator< Type, PageSize >::m_freePage = 0

◆ pages


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