a smart pointer that stores a PyObject pointer and that handles reference counting automatically More...
#include <PythonQtObjectPtr.h>
a smart pointer that stores a PyObject pointer and that handles reference counting automatically
Definition at line 197 of file PythonQtObjectPtr.h.
◆ PythonQtSafeObjectPtr() [1/6] PythonQtSafeObjectPtr::PythonQtSafeObjectPtr ( ) inline ◆ PythonQtSafeObjectPtr() [2/6] ◆ PythonQtSafeObjectPtr() [3/6] ◆ PythonQtSafeObjectPtr() [4/6] ◆ PythonQtSafeObjectPtr() [5/6]rvalue copy constructor, does not need any incref/decref.
Definition at line 219 of file PythonQtObjectPtr.h.
220:_object(
p.takeObject()) {
221 }
◆ PythonQtSafeObjectPtr() [6/6] PythonQtSafeObjectPtr::PythonQtSafeObjectPtr ( PyObject * o ) ◆ ~PythonQtSafeObjectPtr() PythonQtSafeObjectPtr::~PythonQtSafeObjectPtr ( ) ◆ isNull() bool PythonQtSafeObjectPtr::isNull ( ) const inline ◆ object() PyObject * PythonQtSafeObjectPtr::object ( ) const inline ◆ operator PyObject *() PythonQtSafeObjectPtr::operator PyObject * ( ) const inline ◆ operator!=() [1/2] ◆ operator!=() [2/2] bool PythonQtSafeObjectPtr::operator!= ( PyObject * p ) const inline ◆ operator*() PyObject & PythonQtSafeObjectPtr::operator* ( ) const inline ◆ operator->() PyObject * PythonQtSafeObjectPtr::operator-> ( ) const inline ◆ operator=() [1/5] ◆ operator=() [2/5] ◆ operator=() [3/5] ◆ operator=() [4/5] ◆ operator=() [5/5] ◆ operator==() [1/2] ◆ operator==() [2/2] bool PythonQtSafeObjectPtr::operator== ( PyObject * p ) const inline ◆ setObject() ◆ setObjectUnsafe() void PythonQtSafeObjectPtr::setObjectUnsafe ( PyObject * o ) protected ◆ takeObject() PyObject * PythonQtSafeObjectPtr::takeObject ( ) inlinetakes the object from the pointer, leaving the pointer empty. the caller has to take care about the decref of the taken object!
Definition at line 291 of file PythonQtObjectPtr.h.
291 {
293 _object = nullptr;
295 }
References PythonQtConvertPairToPython().
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4