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
QVariant::PrivateShared Struct Reference

#include <qvariant.h>

+ Collaboration diagram for QVariant::PrivateShared:

Public Member Functions

const voiddata () const
 
voiddata ()
 

Static Public Member Functions

static int computeOffset (PrivateShared *ps, size_t align)
 
static size_t computeAllocationSize (size_t size, size_t align)
 
static PrivateSharedcreate (size_t size, size_t align)
 
static void free (PrivateShared *p)
 

Public Attributes

QAtomicInt ref
 
int offset
 

Detailed Description

Definition at line 80 of file qvariant.h.

Member Function Documentation

◆ computeAllocationSize()

size_t QVariant::PrivateShared::computeAllocationSize ( size_t size,
size_t align )
inlinestatic

Definition at line 48 of file qvariant_p.h.

◆ computeOffset()

int QVariant::PrivateShared::computeOffset ( PrivateShared * ps,
size_t align )
inlinestatic

Definition at line 43 of file qvariant_p.h.

◆ create()

QVariant::PrivateShared * QVariant::PrivateShared::create ( size_t size,
size_t align )
inlinestatic

Definition at line 61 of file qvariant_p.h.

References QVariant::data(), and offset.

Referenced by createVariantData(), and customConstructSharedImpl().

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

◆ data() [1/2]

void * QVariant::PrivateShared::data ( )
inline

Definition at line 94 of file qvariant.h.

◆ data() [2/2]

const void * QVariant::PrivateShared::data ( ) const
inline

Definition at line 93 of file qvariant.h.

◆ free()

void QVariant::PrivateShared::free ( PrivateShared * p)
inlinestatic

Definition at line 70 of file qvariant_p.h.

Referenced by customConstructSharedImpl().

+ Here is the caller graph for this function:

Member Data Documentation

◆ offset

int QVariant::PrivateShared::offset

Definition at line 91 of file qvariant.h.

Referenced by create().

◆ ref

QAtomicInt QVariant::PrivateShared::ref

Definition at line 90 of file qvariant.h.


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