A representation of a Qt object that is not handled by the usual Qt memory pattern. When the Qt object derives from a QObject, its deletion is handled on the event loop else it’s deleted immediately upon destruction.
More...
|
| UniqueQtPtr (ObjectType *const obj=nullptr) |
| Constructs an object to manage the given Qt object.
|
|
| UniqueQtPtr (std::nullptr_t) |
| Constructs an object with a nullptr, initialising it to manage no object. This is useful when you need to explicitly initialise a pointer to a null state, ensuring that it does not point to any Qt object initially.
|
|
bool | operator!= (std::nullptr_t) const noexcept |
| Inequality operator for checking null.
|
|
bool | operator== (std::nullptr_t) const noexcept |
| Equality operator for checking null.
|
|
template<typename ObjectType>
class drn::foundation::UniqueQtPtr< ObjectType >
A representation of a Qt object that is not handled by the usual Qt memory pattern. When the Qt object derives from a QObject, its deletion is handled on the event loop else it’s deleted immediately upon destruction.
- Template Parameters
-
ObjectType | The type of the object stored. |