#include <PythonQt.h>
Public Member Functions | |
| PythonQtPassOwnershipToPython (const T &t) | |
| Allow conversion from T to PythonQtPassOwnershipToPython<T> More... | |
| operator T () const | |
| Allow conversion from PythonQtPassOwnershipToPython<T> to T. More... | |
Public Attributes | |
| T | _t |
Detailed Description
template<class T>
class PythonQtPassOwnershipToPython< T >
Helper template that allows to pass the ownership of a C++ instance between C++ and Python (it is used as a slot return type or parameter type so that it can be detected by the PythonQt slot calling code).
Definition at line 106 of file PythonQt.h.
Constructor & Destructor Documentation
◆ PythonQtPassOwnershipToPython()
|
inline |
Allow conversion from T to PythonQtPassOwnershipToPython<T>
Definition at line 110 of file PythonQt.h.
Member Function Documentation
◆ operator T()
|
inline |
Allow conversion from PythonQtPassOwnershipToPython<T> to T.
Definition at line 112 of file PythonQt.h.
References PythonQtPassOwnershipToPython< T >::_t.
Member Data Documentation
◆ _t
Stored value. This is important so that it has the same memory layout as a pointer if T is a pointer type (which is the typical use case for this class).
Definition at line 116 of file PythonQt.h.
Referenced by PythonQtPassOwnershipToPython< T >::operator T().
The documentation for this class was generated from the following file:
Generated on Mon Jun 24 2019 11:13:44 for PythonQt by
1.8.15
