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
QRecyclePoolPrivate< T, Step > Class Template Reference

#include <qrecyclepool_p.h>

+ Collaboration diagram for QRecyclePoolPrivate< T, Step >:

Classes

struct  Page
 
struct  PoolType
 

Public Member Functions

 QRecyclePoolPrivate ()
 
T * allocate ()
 
void releaseIfPossible ()
 

Static Public Member Functions

static void dispose (T *)
 

Public Attributes

bool recyclePoolHold
 
int outstandingItems
 
quint32 cookie
 
PagecurrentPage
 
PoolTypenextAllocated
 

Detailed Description

template<typename T, int Step>
class QRecyclePoolPrivate< T, Step >

Definition at line 27 of file qrecyclepool_p.h.

Constructor & Destructor Documentation

◆ QRecyclePoolPrivate()

template<typename T , int Step>
QRecyclePoolPrivate< T, Step >::QRecyclePoolPrivate ( )
inline

Definition at line 30 of file qrecyclepool_p.h.

Member Function Documentation

◆ allocate()

template<typename T , int Step>
T * QRecyclePoolPrivate< T, Step >::allocate ( )
inline

◆ dispose()

template<typename T , int Step>
void QRecyclePoolPrivate< T, Step >::dispose ( T * t)
inlinestatic

Definition at line 150 of file qrecyclepool_p.h.

References QRecyclePoolPrivate< T, Step >::PoolType::nextAllocated, QRecyclePoolPrivate< T, Step >::PoolType::pool, Q_ASSERT, and QRECYCLEPOOLCOOKIE.

Referenced by QRecyclePool< T, Step >::Delete().

+ Here is the caller graph for this function:

◆ releaseIfPossible()

template<typename T , int Step>
void QRecyclePoolPrivate< T, Step >::releaseIfPossible ( )
inline

Definition at line 109 of file qrecyclepool_p.h.

References QRecyclePoolPrivate< T, Step >::Page::nextPage.

Member Data Documentation

◆ cookie

template<typename T , int Step>
quint32 QRecyclePoolPrivate< T, Step >::cookie

Definition at line 38 of file qrecyclepool_p.h.

◆ currentPage

template<typename T , int Step>
Page* QRecyclePoolPrivate< T, Step >::currentPage

Definition at line 57 of file qrecyclepool_p.h.

◆ nextAllocated

template<typename T , int Step>
PoolType* QRecyclePoolPrivate< T, Step >::nextAllocated

Definition at line 58 of file qrecyclepool_p.h.

◆ outstandingItems

template<typename T , int Step>
int QRecyclePoolPrivate< T, Step >::outstandingItems

Definition at line 37 of file qrecyclepool_p.h.

◆ recyclePoolHold

template<typename T , int Step>
bool QRecyclePoolPrivate< T, Step >::recyclePoolHold

Definition at line 36 of file qrecyclepool_p.h.


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