#include <QtCore/qglobal.h>
#include <QtCore/qvariant.h>
Go to the source code of this file.
|
Q_CORE_EXPORT const QVariant::Handler * | qcoreVariantHandler () |
|
template<typename T > |
const T * | v_cast (const QVariant::Private *d, T *=0) |
|
template<typename T > |
T * | v_cast (QVariant::Private *d, T *=0) |
|
template<class T > |
void | v_clear (QVariant::Private *d, T *=0) |
|
template<class T > |
void | v_construct (QVariant::Private *x, const void *copy, T *=0) |
|
template<class T > |
void | v_construct (QVariant::Private *x, const T &t) |
|
◆ qcoreVariantHandler()
◆ v_cast() [1/2]
template<typename T >
const T* v_cast |
( |
const QVariant::Private * |
d, |
|
|
T * |
= 0 |
|
) |
| |
|
inline |
◆ v_cast() [2/2]
template<typename T >
T* v_cast |
( |
QVariant::Private * |
d, |
|
|
T * |
= 0 |
|
) |
| |
|
inline |
Definition at line 86 of file qvariant_p.h.
89 ? static_cast<T *>(
d->data.shared->ptr)
90 : static_cast<T *>(static_cast<void *>(&
d->data.c)));
◆ v_clear()
template<class T >
void v_clear |
( |
QVariant::Private * |
d, |
|
|
T * |
= 0 |
|
) |
| |
|
inline |
Definition at line 136 of file qvariant_p.h.
const T * v_cast(const QVariant::Private *d, T *=0)
◆ v_construct() [1/2]
template<class T >
void v_construct |
( |
QVariant::Private * |
x, |
|
|
const void * |
copy, |
|
|
T * |
= 0 |
|
) |
| |
|
inline |
Definition at line 109 of file qvariant_p.h.
117 new (&x->data.ptr) T(*static_cast<const T *>(copy));
119 new (&x->data.ptr) T;
◆ v_construct() [2/2]
template<class T >
void v_construct |
( |
QVariant::Private * |
x, |
|
|
const T & |
t |
|
) |
| |
|
inline |