GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing mevislab.github.io — PythonQt: PythonQtObjectPtr Class Reference
PythonQtObjectPtr Class Reference a smart pointer that stores a PyObject pointer and that handles reference counting automatically More...
Detailed Descriptiona smart pointer that stores a PyObject pointer and that handles reference counting automatically Definition at line 56 of file PythonQtObjectPtr.h. Constructor & Destructor Documentation◆ PythonQtObjectPtr() [1/6]
Definition at line 59 of file PythonQtObjectPtr.h. 60 : _object(nullptr)
61 {
62 }
Referenced by operator!=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator==(), PythonQtObjectPtr(), and PythonQtObjectPtr(). ◆ PythonQtObjectPtr() [2/6]
Definition at line 64 of file PythonQtObjectPtr.h. 65 : _object(nullptr)
66 {
68 }
void setObject(PyObject *o) References object(), PythonQtObjectPtr(), and setObject(). ◆ PythonQtObjectPtr() [3/6]
rvalue copy constructor, does not need any incref/decref. Definition at line 71 of file PythonQtObjectPtr.h. References PythonQtObjectPtr(). ◆ PythonQtObjectPtr() [4/6]
rvalue copy constructor, does not need any incref/decref. ◆ PythonQtObjectPtr() [5/6]
If the given variant holds a PythonQtObjectPtr, extract the value from it and hold onto the reference. This results in an increment of the reference count. Definition at line 80 of file PythonQtObjectPtr.h. 81 : _object(nullptr)
82 {
83 fromVariant(variant);
84 }
bool fromVariant(const QVariant &variant) If the given variant holds a PythonQtObjectPtr, extract the value from it and hold onto the reference... References fromVariant(). ◆ PythonQtObjectPtr() [6/6]
◆ ~PythonQtObjectPtr()
Member Function Documentation◆ addObject()
add the given ◆ addVariable()
add the given variable to the module ◆ call() [1/2]
call the given python object (in the scope of the current object), returns the result converted to a QVariant ◆ call() [2/2]
call the contained python object directly, returns the result converted to a QVariant ◆ evalCode()
evaluates the given code and returns the result value (use Py_Compile etc. to create pycode from string) If pycode is NULL, a python error is printed. ◆ evalFile()
evaluates the given code in the context ◆ evalScript()
evaluates the given script code in the context of this object and returns the result value ◆ fromVariant()
If the given variant holds a PythonQtObjectPtr, extract the value from it and hold onto the reference. This results in an increment of the reference count. Referenced by operator=(), and PythonQtObjectPtr(). ◆ getVariable()
get the variable with the ◆ isNull()
◆ object()
Definition at line 149 of file PythonQtObjectPtr.h. 149{ return _object; }
Referenced by isNull(), operator PyObject *(), operator!=(), operator*(), operator->(), operator=(), PythonQtSafeObjectPtr::operator=(), operator==(), operator==(), PythonQtObjectPtr(), and PythonQtSafeObjectPtr::PythonQtSafeObjectPtr(). ◆ operator PyObject *()
◆ operator!=() [1/2]
Definition at line 132 of file PythonQtObjectPtr.h. 132{ return !(*this == p); }
References PythonQtObjectPtr(). ◆ operator!=() [2/2]
◆ operator*()
◆ operator->()
◆ operator=() [1/5]
Definition at line 99 of file PythonQtObjectPtr.h. References object(), PythonQtObjectPtr(), and setObject(). ◆ operator=() [2/5]
Definition at line 124 of file PythonQtObjectPtr.h. References fromVariant(), and PythonQtObjectPtr(). ◆ operator=() [3/5]
Definition at line 118 of file PythonQtObjectPtr.h. References PythonQtObjectPtr(), and setObject(). ◆ operator=() [4/5]
rvalue assignment operator that steals the reference from p Definition at line 106 of file PythonQtObjectPtr.h. References PythonQtObjectPtr(), and setObject(). ◆ operator=() [5/5]
rvalue assignment operator that steals the reference from p References PythonQtObjectPtr(). ◆ operator==() [1/2]
Definition at line 130 of file PythonQtObjectPtr.h. References object(), and PythonQtObjectPtr(). ◆ operator==() [2/2]
◆ removeVariable()
remove the given variable ◆ setNewRef()
sets the object and passes the ownership (stealing the reference, in Python slang) ◆ setObject()
Referenced by operator=(), operator=(), operator=(), and PythonQtObjectPtr(). ◆ takeObject()
takes the object from the pointer, leaving the pointer empty. the caller has to take care about the decref of the taken object! Definition at line 182 of file PythonQtObjectPtr.h. ◆ toLocalVariant()
Returns a PythonQtObjectPtr as a QVariant. Only use this when you know that the variant is only used locally and not stored outside of the current GIL scope. ◆ toVariant()
Returns a PythonQtSafeObjectPtr as a QVariant. It does not return a PythonQtObjectPtr, because that would be unsafe regarding the GIL. The documentation for this class was generated from the following file: Generated on for PythonQt by | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||