PythonQt
|
Some helper methods that allow testing of the ownership. More...
#include <PythonQtStdDecorators.h>
Public Slots | |
bool | isOwnedByPython (PyObject *object) |
Returns if the C++ object is owned by PythonQt and will be deleted when the reference goes away. | |
bool | isDerivedShellInstance (PyObject *object) |
Returns if the C++ object is an instance of a Python class that derives a C++ class. | |
bool | hasExtraShellRefCount (PyObject *object) |
Returns if the shell instance has an extra ref count from the C++ side. | |
bool | passOwnershipToCPP (PyObject *object) |
Pass the ownership of the given object to CPP (so that it will not be deleted by Python if the reference goes away) | |
bool | passOwnershipToPython (PyObject *object) |
Pass the ownership of the given object to Python (so that the C++ object will be deleted when the Python reference goes away) | |
bool | isPythonQtInstanceWrapper (PyObject *object) |
Returns if the given object is a PythonQt instance wrapper (or derived class) | |
bool | isPythonQtClassWrapper (PyObject *object) |
Returns if the given object is a PythonQt class wrapper (or derived class) | |
Public Member Functions | |
PythonQtDebugAPI (QObject *parent) | |
Some helper methods that allow testing of the ownership.
Definition at line 211 of file PythonQtStdDecorators.h.
|
inline |
Definition at line 215 of file PythonQtStdDecorators.h.
Returns if the shell instance has an extra ref count from the C++ side.
Returns if the C++ object is an instance of a Python class that derives a C++ class.
Returns if the C++ object is owned by PythonQt and will be deleted when the reference goes away.
Returns if the given object is a PythonQt class wrapper (or derived class)
Returns if the given object is a PythonQt instance wrapper (or derived class)
Pass the ownership of the given object to CPP (so that it will not be deleted by Python if the reference goes away)
Pass the ownership of the given object to Python (so that the C++ object will be deleted when the Python reference goes away)