Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::QConstPreservingPointer< Type, Storage > Class Template Reference

#include <qiterable.h>

+ Collaboration diagram for QtPrivate::QConstPreservingPointer< Type, Storage >:

Public Member Functions

Q_NODISCARD_CTOR QConstPreservingPointer (std::nullptr_t)
 
Q_NODISCARD_CTOR QConstPreservingPointer (const void *pointer, qsizetype alignment)
 
Q_NODISCARD_CTOR QConstPreservingPointer (void *pointer, qsizetype alignment)
 
template<typename InputType >
Q_NODISCARD_CTOR QConstPreservingPointer (const InputType *pointer)
 
template<typename InputType >
Q_NODISCARD_CTOR QConstPreservingPointer (InputType *pointer)
 
Q_NODISCARD_CTOR QConstPreservingPointer ()=default
 
const TypeconstPointer () const
 
TypemutablePointer () const
 

Detailed Description

template<typename Type, typename Storage = Type>
class QtPrivate::QConstPreservingPointer< Type, Storage >

Definition at line 16 of file qiterable.h.

Constructor & Destructor Documentation

◆ QConstPreservingPointer() [1/6]

template<typename Type , typename Storage = Type>
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( std::nullptr_t )
inline

Definition at line 22 of file qiterable.h.

◆ QConstPreservingPointer() [2/6]

template<typename Type , typename Storage = Type>
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( const void * pointer,
qsizetype alignment )
inline

Definition at line 24 of file qiterable.h.

References alignment, Q_ASSERT, and Q_UNUSED.

◆ QConstPreservingPointer() [3/6]

template<typename Type , typename Storage = Type>
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( void * pointer,
qsizetype alignment )
inline

Definition at line 31 of file qiterable.h.

References alignment, Q_ASSERT, and Q_UNUSED.

◆ QConstPreservingPointer() [4/6]

template<typename Type , typename Storage = Type>
template<typename InputType >
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( const InputType * pointer)
inline

Definition at line 39 of file qiterable.h.

◆ QConstPreservingPointer() [5/6]

template<typename Type , typename Storage = Type>
template<typename InputType >
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( InputType * pointer)
inline

Definition at line 46 of file qiterable.h.

◆ QConstPreservingPointer() [6/6]

template<typename Type , typename Storage = Type>
Q_NODISCARD_CTOR QtPrivate::QConstPreservingPointer< Type, Storage >::QConstPreservingPointer ( )
default

Member Function Documentation

◆ constPointer()

template<typename Type , typename Storage = Type>
const Type * QtPrivate::QConstPreservingPointer< Type, Storage >::constPointer ( ) const
inline

Definition at line 54 of file qiterable.h.

Referenced by QSequentialIterable::at(), QBaseIterator< Container >::constIterable(), and QIterable< Container >::constIterable().

+ Here is the caller graph for this function:

◆ mutablePointer()

template<typename Type , typename Storage = Type>
Type * QtPrivate::QConstPreservingPointer< Type, Storage >::mutablePointer ( ) const
inline

Definition at line 59 of file qiterable.h.

Referenced by QIterable< Container >::mutableIterable(), QBaseIterator< Container >::mutableIterable(), and QSequentialIterable::set().

+ Here is the caller graph for this function:

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