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
QQmlJS::MemoryPool Class Reference

#include <qqmljsmemorypool_p.h>

+ Collaboration diagram for QQmlJS::MemoryPool:

Public Member Functions

 MemoryPool ()=default
 
 ~MemoryPool ()
 
voidallocate (size_t size)
 
void reset ()
 
template<typename Tp >
Tp * New ()
 
template<typename Tp , typename... Ta>
Tp * New (Ta... args)
 
QStringView newString (QString string)
 

Detailed Description

Definition at line 30 of file qqmljsmemorypool_p.h.

Constructor & Destructor Documentation

◆ MemoryPool()

QQmlJS::MemoryPool::MemoryPool ( )
default

◆ ~MemoryPool()

QQmlJS::MemoryPool::~MemoryPool ( )
inline

Definition at line 36 of file qqmljsmemorypool_p.h.

References i.

Member Function Documentation

◆ allocate()

void * QQmlJS::MemoryPool::allocate ( size_t size)
inline

Definition at line 48 of file qqmljsmemorypool_p.h.

References Q_LIKELY.

Referenced by New(), and New().

+ Here is the caller graph for this function:

◆ New() [1/2]

template<typename Tp >
Tp * QQmlJS::MemoryPool::New ( )
inline

Definition at line 65 of file qqmljsmemorypool_p.h.

References allocate().

+ Here is the call graph for this function:

◆ New() [2/2]

template<typename Tp , typename... Ta>
Tp * QQmlJS::MemoryPool::New ( Ta... args)
inline

Definition at line 66 of file qqmljsmemorypool_p.h.

References allocate(), and args.

+ Here is the call graph for this function:

◆ newString()

QStringView QQmlJS::MemoryPool::newString ( QString string)
inline

Definition at line 69 of file qqmljsmemorypool_p.h.

◆ reset()

void QQmlJS::MemoryPool::reset ( )
inline

Definition at line 59 of file qqmljsmemorypool_p.h.


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