GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • PythonQt.h

This view

  • Original page
  • New address

GeezerVison is showing mevislab.github.io — PythonQt: PythonQtPassOwnershipToCPP< T > Class Template Reference

PythonQt
Public Member Functions | Public Attributes | List of all members
PythonQtPassOwnershipToCPP< T > Class Template Reference

#include <PythonQt.h>

Public Member Functions

 PythonQtPassOwnershipToCPP (const T &t)
 Allow conversion from T to PythonQtPassOwnershipToCPP<T>.
 operator T () const
 Allow conversion from PythonQtPassOwnershipToCPP<T> to T.

Public Attributes

T _t

Detailed Description

template<class T>
class PythonQtPassOwnershipToCPP< 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 90 of file PythonQt.h.

Constructor & Destructor Documentation

◆ PythonQtPassOwnershipToCPP()

template<class T>
PythonQtPassOwnershipToCPP< T >::PythonQtPassOwnershipToCPP ( const T & t)
inline

Allow conversion from T to PythonQtPassOwnershipToCPP<T>.

Definition at line 94 of file PythonQt.h.

95 : _t(t)
96 {
97 }
PythonQtPassOwnershipToCPP
Definition PythonQt.h:91
PythonQtPassOwnershipToCPP::_t
T _t
Definition PythonQt.h:103

References _t.

Member Function Documentation

◆ operator T()

template<class T>
PythonQtPassOwnershipToCPP< T >::operator T ( ) const
inline

Allow conversion from PythonQtPassOwnershipToCPP<T> to T.

Definition at line 99 of file PythonQt.h.

99{ return _t; }

References _t.

Member Data Documentation

◆ _t

template<class T>
T PythonQtPassOwnershipToCPP< T >::_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 103 of file PythonQt.h.

Referenced by operator T(), and PythonQtPassOwnershipToCPP().


The documentation for this class was generated from the following file:
  • PythonQt.h

Generated on for PythonQt by doxygen 1.15.0
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.