Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Emulated const pointer to QVariant based on a pointer. More...
#include <qvariant.h>
Public Member Functions | |
QVariantConstPointer (QVariant variant) | |
Constructs a QVariantConstPointer from a variant. | |
QVariant | operator* () const |
Dereferences the QVariantConstPointer to retrieve its internal QVariant. | |
const QVariant * | operator-> () const |
Returns a const pointer to the QVariant, conforming to the conventions for operator->(). | |
Emulated const pointer to QVariant based on a pointer.
QVariantConstPointer wraps a QVariant and returns it from its operator*(). This makes it suitable as replacement for an actual const pointer. We cannot return an actual const pointer from generic iterators as the iterators don't hold an actual QVariant.
Definition at line 858 of file qvariant.h.
|
explicit |
Constructs a QVariantConstPointer from a variant.
Definition at line 2976 of file qvariant.cpp.
QVariant QVariantConstPointer::operator* | ( | ) | const |
Dereferences the QVariantConstPointer to retrieve its internal QVariant.
Definition at line 2984 of file qvariant.cpp.
const QVariant * QVariantConstPointer::operator-> | ( | ) | const |
Returns a const pointer to the QVariant, conforming to the conventions for operator->().
Definition at line 2993 of file qvariant.cpp.