PythonQt
Public Slots | Public Member Functions | List of all members
PythonQtDebugAPI Class Reference

Some helper methods that allow testing of the ownership. More...

#include <PythonQtStdDecorators.h>

Inheritance diagram for PythonQtDebugAPI:

Public Slots

bool isOwnedByPython (PyObject *object)
 Returns if the C++ object is owned by PythonQt and will be deleted when the reference goes away. More...
 
bool isDerivedShellInstance (PyObject *object)
 Returns if the C++ object is an instance of a Python class that derives a C++ class. More...
 
bool hasExtraShellRefCount (PyObject *object)
 Returns if the shell instance has an extra ref count from the C++ side. More...
 
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) More...
 
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) More...
 
bool isPythonQtInstanceWrapper (PyObject *object)
 Returns if the given object is a PythonQt instance wrapper (or derived class) More...
 
bool isPythonQtClassWrapper (PyObject *object)
 Returns if the given object is a PythonQt class wrapper (or derived class) More...
 

Public Member Functions

 PythonQtDebugAPI (QObject *parent)
 

Detailed Description

Some helper methods that allow testing of the ownership.

Definition at line 211 of file PythonQtStdDecorators.h.

Constructor & Destructor Documentation

◆ PythonQtDebugAPI()

PythonQtDebugAPI::PythonQtDebugAPI ( QObject *  parent)
inline

Definition at line 215 of file PythonQtStdDecorators.h.

215 :QObject(parent) {};

Member Function Documentation

◆ hasExtraShellRefCount

bool PythonQtDebugAPI::hasExtraShellRefCount ( PyObject object)
slot

Returns if the shell instance has an extra ref count from the C++ side.

◆ isDerivedShellInstance

bool PythonQtDebugAPI::isDerivedShellInstance ( PyObject object)
slot

Returns if the C++ object is an instance of a Python class that derives a C++ class.

◆ isOwnedByPython

bool PythonQtDebugAPI::isOwnedByPython ( PyObject object)
slot

Returns if the C++ object is owned by PythonQt and will be deleted when the reference goes away.

◆ isPythonQtClassWrapper

bool PythonQtDebugAPI::isPythonQtClassWrapper ( PyObject object)
slot

Returns if the given object is a PythonQt class wrapper (or derived class)

◆ isPythonQtInstanceWrapper

bool PythonQtDebugAPI::isPythonQtInstanceWrapper ( PyObject object)
slot

Returns if the given object is a PythonQt instance wrapper (or derived class)

◆ passOwnershipToCPP

bool PythonQtDebugAPI::passOwnershipToCPP ( PyObject object)
slot

Pass the ownership of the given object to CPP (so that it will not be deleted by Python if the reference goes away)

◆ passOwnershipToPython

bool PythonQtDebugAPI::passOwnershipToPython ( PyObject object)
slot

Pass the ownership of the given object to Python (so that the C++ object will be deleted when the Python reference goes away)


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