Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <maybe_owned.h>
Public Types | |
using | OwnedType = std::unique_ptr<T, D> |
using | UnownedType = UnownedPtr<T> |
Public Member Functions | |
MaybeOwned ()=default | |
MaybeOwned (T *ptr) | |
MaybeOwned (const UnownedType &ptr) | |
MaybeOwned (OwnedType ptr) | |
MaybeOwned (const MaybeOwned &that)=delete | |
MaybeOwned (MaybeOwned &&that) noexcept=default | |
MaybeOwned & | operator= (const MaybeOwned &that)=delete |
MaybeOwned & | operator= (MaybeOwned &&that) noexcept=default |
~MaybeOwned ()=default | |
void | Reset (T *ptr=nullptr) |
void | Reset (OwnedType ptr) |
bool | IsOwned () const |
void | ResetIfUnowned () |
T * | Get () const & |
T * | Get () && |
OwnedType | Release () |
OwnedType | ReleaseAndClear () |
MaybeOwned & | operator= (T *ptr) |
MaybeOwned & | operator= (const UnownedType &ptr) |
MaybeOwned & | operator= (OwnedType ptr) |
bool | operator== (const MaybeOwned &that) const |
bool | operator== (const OwnedType &ptr) const |
bool | operator== (T *ptr) const |
bool | operator!= (const MaybeOwned &that) const |
bool | operator!= (const OwnedType ptr) const |
bool | operator!= (T *ptr) const |
operator bool () const | |
T & | operator* () const |
T * | operator-> () const |
Definition at line 21 of file maybe_owned.h.
using fxcrt::MaybeOwned< T, D >::OwnedType = std::unique_ptr<T, D> |
Definition at line 23 of file maybe_owned.h.
using fxcrt::MaybeOwned< T, D >::UnownedType = UnownedPtr<T> |
Definition at line 24 of file maybe_owned.h.
|
default |
|
inlineexplicit |
Definition at line 27 of file maybe_owned.h.
|
inlineexplicit |
Definition at line 28 of file maybe_owned.h.
|
inlineexplicit |
Definition at line 29 of file maybe_owned.h.
|
delete |
|
defaultnoexcept |
|
default |
|
inline |
Definition at line 53 of file maybe_owned.h.
|
inline |
Definition at line 50 of file maybe_owned.h.
|
inline |
Definition at line 42 of file maybe_owned.h.
Referenced by fxcrt::MaybeOwned< T, D >::ResetIfUnowned().
|
inlineexplicit |
Definition at line 94 of file maybe_owned.h.
|
inline |
Definition at line 90 of file maybe_owned.h.
|
inline |
Definition at line 91 of file maybe_owned.h.
|
inline |
Definition at line 92 of file maybe_owned.h.
|
inline |
Definition at line 95 of file maybe_owned.h.
|
inline |
Definition at line 96 of file maybe_owned.h.
|
delete |
|
inline |
Definition at line 77 of file maybe_owned.h.
|
defaultnoexcept |
|
inline |
Definition at line 81 of file maybe_owned.h.
|
inline |
Definition at line 73 of file maybe_owned.h.
|
inline |
Definition at line 86 of file maybe_owned.h.
|
inline |
Definition at line 87 of file maybe_owned.h.
|
inline |
Definition at line 88 of file maybe_owned.h.
|
inline |
Definition at line 60 of file maybe_owned.h.
|
inline |
Definition at line 67 of file maybe_owned.h.
|
inline |
Definition at line 40 of file maybe_owned.h.
|
inline |
Definition at line 39 of file maybe_owned.h.
|
inline |
Definition at line 45 of file maybe_owned.h.
References fxcrt::MaybeOwned< T, D >::IsOwned().