Qt 4.8
Static Public Functions | Public Variables | List of all members
QContiguousCacheData Struct Reference

#include <qcontiguouscache.h>

Inheritance diagram for QContiguousCacheData:
QContiguousCacheTypedData< T >

Static Public Functions

static QContiguousCacheDataallocate (int size, int alignment)
 
static void free (QContiguousCacheData *data)
 

Public Variables

int alloc
 
int count
 
int offset
 
QBasicAtomicInt ref
 
uint reserved: 31
 
uint sharable: 1
 
int start
 

Detailed Description

Definition at line 57 of file qcontiguouscache.h.

Functions

◆ allocate()

QContiguousCacheData * QContiguousCacheData::allocate ( int  size,
int  alignment 
)
static

Definition at line 59 of file qcontiguouscache.cpp.

Referenced by QContiguousCache< T >::malloc().

60 {
61  return static_cast<QContiguousCacheData *>(qMallocAligned(size, alignment));
62 }
Q_CORE_EXPORT void * qMallocAligned(size_t size, size_t alignment)
Definition: qmalloc.cpp:68

◆ free()

void QContiguousCacheData::free ( QContiguousCacheData data)
static

Definition at line 64 of file qcontiguouscache.cpp.

Referenced by QContiguousCacheTypedData< T >::free().

65 {
66  qFreeAligned(data);
67 }
Q_CORE_EXPORT void qFreeAligned(void *ptr)
Definition: qmalloc.cpp:118

Properties

◆ alloc

int QContiguousCacheData::alloc

Definition at line 60 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::operator==().

◆ count

int QContiguousCacheData::count

Definition at line 61 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::operator==().

◆ offset

int QContiguousCacheData::offset

Definition at line 63 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::operator==().

◆ ref

QBasicAtomicInt QContiguousCacheData::ref

Definition at line 59 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::operator=().

◆ reserved

uint QContiguousCacheData::reserved

Definition at line 65 of file qcontiguouscache.h.

◆ sharable

uint QContiguousCacheData::sharable

Definition at line 64 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::setSharable().

◆ start

int QContiguousCacheData::start

Definition at line 62 of file qcontiguouscache.h.

Referenced by QContiguousCache< T >::operator==().


The documentation for this struct was generated from the following files: