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
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 89 of file qsgbatchrenderer_p.h.

Constructor & Destructor Documentation

◆ Allocator()

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

Definition at line 92 of file qsgbatchrenderer_p.h.

◆ ~Allocator()

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

Definition at line 97 of file qsgbatchrenderer_p.h.

Member Function Documentation

◆ allocate()

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

Definition at line 102 of file qsgbatchrenderer_p.h.

References m_freePage.

◆ release()

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

Definition at line 157 of file qsgbatchrenderer_p.h.

◆ releaseExplicit()

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

Definition at line 130 of file qsgbatchrenderer_p.h.

References m_freePage.

Member Data Documentation

◆ m_freePage

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

Definition at line 176 of file qsgbatchrenderer_p.h.

Referenced by allocate(), and releaseExplicit().

◆ pages

template<typename Type, int PageSize>
QVector<AllocatorPage<Type, PageSize> *> QSGBatchRenderer::Allocator< Type, PageSize >::pages

Definition at line 175 of file qsgbatchrenderer_p.h.


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