SourceForge.net Logo
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 176 of file PythonQtStdDecorators.h.

Constructor & Destructor Documentation

PythonQtDebugAPI::PythonQtDebugAPI ( QObject *  parent)
inline

Definition at line 180 of file PythonQtStdDecorators.h.

180 :QObject(parent) {};

Member Function Documentation

bool PythonQtDebugAPI::hasExtraShellRefCount ( PyObject object)
slot

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

bool PythonQtDebugAPI::isDerivedShellInstance ( PyObject object)
slot

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

bool PythonQtDebugAPI::isOwnedByPython ( PyObject object)
slot

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

bool PythonQtDebugAPI::isPythonQtClassWrapper ( PyObject object)
slot

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

bool PythonQtDebugAPI::isPythonQtInstanceWrapper ( PyObject object)
slot

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

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)

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: