![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QVariant::ConstReference acts as a const reference to a QVariant. More...
#include <qvariant.h>
Public Member Functions | |
| ConstReference (const Indirect &referred) noexcept(std::is_nothrow_copy_constructible_v< Indirect >) | |
| Creates a QVariant::ConstReference from a referred. | |
| ConstReference (Indirect &&referred) noexcept(std::is_nothrow_move_constructible_v< Indirect >) | |
| Creates a QVariant::ConstReference from a referred. | |
| ConstReference (const ConstReference &) noexcept(std::is_nothrow_copy_constructible_v< Indirect >)=default | |
| ConstReference (ConstReference &&)=delete | |
| ConstReference (const Reference< Indirect > &) noexcept(std::is_nothrow_copy_constructible_v< Indirect >) | |
| Creates a QVariant::ConstReference from a nonConst Reference. | |
| ~ConstReference ()=default | |
| ConstReference & | operator= (const ConstReference &value)=delete |
| ConstReference & | operator= (ConstReference &&value)=delete |
| operator QVariant () const noexcept(Indirect::CanNoexceptConvertToQVariant) | |
| Dereferences the reference to a QVariant. | |
| operator QVariant () const | |
| operator QVariant () const | |
Friends | |
| class | Reference< Indirect > |
The QVariant::ConstReference acts as a const reference to a QVariant.
As the generic iterators don't actually instantiate a QVariant on each step, they cannot return a reference to one from operator*(). QVariant::ConstReference<Indirect> provides the same functionality as an actual reference to a QVariant would, but is backed by a referred-to value of type Indirect. The template is implemented for QMetaSequence::ConstIterator, QMetaSequence::Iterator, QMetaAssociation::ConstIterator, and QMetaAssociation::Iterator.
Definition at line 237 of file qvariant.h.
|
inlineexplicitnoexcept |
Creates a QVariant::ConstReference from a referred.
Definition at line 246 of file qvariant.h.
|
inlineexplicitnoexcept |
Creates a QVariant::ConstReference from a referred.
Definition at line 249 of file qvariant.h.
|
defaultnoexcept |
|
delete |
|
inlinenoexcept |
Creates a QVariant::ConstReference from a nonConst Reference.
Definition at line 929 of file qvariant.h.
|
default |
|
inline |
Definition at line 116 of file qmetaassociation.h.
|
inline |
Definition at line 84 of file qmetasequence.h.
|
noexcept |
Dereferences the reference to a QVariant.
This method needs to be specialized for each Indirect type. It is pre-defined for QMetaSequence::ConstIterator, QMetaSequence::Iterator, QMetaAssociation::ConstIterator, and QMetaAssociation::Iterator.
|
delete |
|
delete |
|
friend |
Definition at line 117 of file qvariant.h.