Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QVariant::Pointer< Pointed > Class Template Reference

QVariant::Pointer is a template class that emulates a non-const pointer to QVariant. More...

#include <qvariant.h>

Collaboration diagram for QVariant::Pointer< Pointed >:

Public Member Functions

 Pointer (const Pointed &pointed) noexcept(std::is_nothrow_copy_constructible_v< Pointed >)
 Constructs a QVariant::Pointer from the value pointed to.
 Pointer (Pointed &&pointed) noexcept(std::is_nothrow_move_constructible_v< Pointed >)
 Constructs a QVariant::Pointer from the value pointed to.
Reference< Pointed > operator* () const noexcept(std::is_nothrow_copy_constructible_v< Pointed >)
 Dereferences the QVariant::Pointer to a QVariant::Reference.

Detailed Description

template<typename Pointed>
class QVariant::Pointer< Pointed >

QVariant::Pointer is a template class that emulates a non-const pointer to QVariant.

Since
6.11 \inmodule QtCore

QVariant::Pointer wraps pointed-to value and returns a QVariant::Reference 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 341 of file qvariant.h.

Constructor & Destructor Documentation

◆ Pointer() [1/2]

template<typename Pointed>
QVariant::Pointer< Pointed >::Pointer ( const Pointed & pointed)
inlineexplicitnoexcept

Constructs a QVariant::Pointer from the value pointed to.

Definition at line 347 of file qvariant.h.

◆ Pointer() [2/2]

template<typename Pointed>
QVariant::Pointer< Pointed >::Pointer ( Pointed && pointed)
inlineexplicitnoexcept

Constructs a QVariant::Pointer from the value pointed to.

Definition at line 350 of file qvariant.h.

Member Function Documentation

◆ operator*()

template<typename Pointed>
Reference< Pointed > QVariant::Pointer< Pointed >::operator* ( ) const
inlinenoexcept

Dereferences the QVariant::Pointer to a QVariant::Reference.

Definition at line 354 of file qvariant.h.


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