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< Indirect > 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< Indirect >:

Public Member Functions

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

Detailed Description

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

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

Since
6.11 \inmodule QtCore

QVariant::Pointer<Indirect> wraps a pointed-to value of type Indirect 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 369 of file qvariant.h.

Constructor & Destructor Documentation

◆ Pointer() [1/2]

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

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

Definition at line 375 of file qvariant.h.

◆ Pointer() [2/2]

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

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

Definition at line 378 of file qvariant.h.

Member Function Documentation

◆ operator ConstPointer< Indirect >()

template<typename Indirect>
QVariant::Pointer< Indirect >::operator ConstPointer< Indirect > ( ) const
inlinenoexcept

Definition at line 388 of file qvariant.h.

◆ operator*()

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

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

Definition at line 382 of file qvariant.h.


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