![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
QVariantPointer is a template class that emulates a pointer to QVariant based on a pointer. More...
#include <qvariant.h>
Public Member Functions | |
QVariantPointer (const Pointer *pointer) | |
Constructs a QVariantPointer from the given pointer. | |
QVariantRef< Pointer > | operator* () const |
Dereferences the QVariantPointer to a QVariantRef. | |
Pointer | operator-> () const |
Dereferences and returns the pointer. | |
QVariantPointer is a template class that emulates a pointer to QVariant based on a pointer.
QVariantConstPointer wraps a pointer and returns QVariantRef to it from its operator*(). This makes it suitable as replacement for an actual pointer. We cannot return an actual pointer from generic iterators as the iterators don't hold an actual QVariant.
Definition at line 860 of file qvariant.h.
|
inlineexplicit |
Constructs a QVariantPointer from the given pointer.
Definition at line 866 of file qvariant.h.
|
inline |
Dereferences the QVariantPointer to a QVariantRef.
Definition at line 867 of file qvariant.h.
|
inline |
Dereferences and returns the pointer.
The pointer is expected to also implement operator->().
Definition at line 868 of file qvariant.h.