/dports/devel/qtcreator/qt-creator-opensource-src-5.0.3/src/libs/qtcreatorcdbext/ |
H A D | pycdbextmodule.h | 61 #define PY_FUNC_DECL(func,pyObj) PyObject *func(pyObj *self) argument 62 #define PY_FUNC_DECL_WITH_ARGS(func,pyObj) PyObject *func(pyObj *self, PyObject *args) argument 63 #define PY_FUNC_HEAD(func, pyObj) PY_FUNC_DECL(func,pyObj) { PY_IMPL_GUARD; argument 66 #define PY_FUNC(func, pyObj, retType) \ argument 73 PY_FUNC_HEAD (func, pyObj) \ 78 #define PY_FUNC_RET_SELF(func, pyObj) \ argument 83 PY_FUNC_HEAD(func, pyObj) \ 87 PY_FUNC_HEAD(func, pyObj) \ 89 #define PY_NEW_FUNC(pyObj) \ argument 92 pyObj *self = reinterpret_cast<pyObj *>(type->tp_alloc(type, 0)); \ [all …]
|
/dports/math/openturns/openturns-1.18/python/src/openturns/ |
H A D | PythonWrappingFunctions.hxx | 36 : pyObj_(pyObj) in ScopedPyObjectPointer() 48 pyObj_ = pyObj; in operator =() 164 return PyInt_Check(pyObj) || PyLong_Check(pyObj); in isAPython() 231 return PyNumber_Check(pyObj) && !PyComplex_Check(pyObj) && !PySequence_Check(pyObj); in isAPython() 408 return PyString_Check(pyObj) || PyUnicode_Check(pyObj); in isAPython() 534 check(PyObject * pyObj) in check() argument 901 return pyObj; in convert() 1760 return pyObj; in SliceCast() 1791 assert(pyObj); in pickleSave() 1859 Py_XDECREF(pyObj); in pickleLoad() [all …]
|
/dports/math/openturns/openturns-1.18/python/src/ |
H A D | BaseFuncCollection.i | 20 canConvert< _PyObject_, OT::Function >(PyObject * pyObj) 31 …return PyCallable_Check(pyObj) && !SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Object, S… 39 convert< _PyObject_, OT::Function >(PyObject * pyObj) 42 if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Function, 0))) { 48 …} else if (!PyCallable_Check(pyObj) || SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Objec… 52 if (PyObject_HasAttrString( pyObj, const_cast<char *>("_gradient"))) 54 pythonFunction.setGradient(new OT::PythonGradient(pyObj)); 56 if (PyObject_HasAttrString(pyObj, const_cast<char *>("_hessian"))) 58 pythonFunction.setHessian(new OT::PythonHessian(pyObj)); 73 canConvert< _PyObject_, OT::Basis >(PyObject * pyObj) [all …]
|
H A D | ProcessSample.i | 12 convert< OT::_PySequence_, OT::Collection<OT::Sample> >(PyObject * pyObj) 15 …if (SWIG_IsOK(SWIG_ConvertPtr( pyObj, &ptr, SWIG_TypeQuery("OT::Collection<OT::Sample> *"), SWIG_P… 20 return *OT::buildCollectionFromPySequence< OT::Sample >(pyObj); 27 bool canConvert<OT::_PySequence_, OT::Collection<OT::Sample> >(_object * pyObj) 29 return OT::canConvertCollectionObjectFromPySequence< OT::Sample >(pyObj); 34 bool canConvert<OT::_PySequence_, OT::Sample >(_object * pyObj) 36 …return SWIG_IsOK(SWIG_ConvertPtr(pyObj, NULL, SWIG_TypeQuery("OT::Sample *"), SWIG_POINTER_NO_NULL… 37 …|| OT::isAPythonBufferOf<OT::Scalar, 2>(pyObj) || OT::isAPythonSequenceOf<OT::_PySequence_>(pyObj);
|
H A D | FieldToPointFunction.i | 18 canConvert< _PyObject_, OT::FieldToPointFunction >(PyObject * pyObj) 21 …if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__FieldToPointFunction, SWIG_POINTER_NO_NU… 24 …} else if (SWIG_IsOK(SWIG_ConvertPtr( pyObj, &ptr, SWIGTYPE_p_OT__FieldToPointFunctionImplementati… 28 return PyCallable_Check( pyObj ); 35 convert< _PyObject_, OT::FieldToPointFunction >(PyObject * pyObj) 38 …if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__FieldToPointFunction, SWIG_POINTER_NO_NU… 44 } else if (!PyCallable_Check(pyObj)) { 47 OT::FieldToPointFunction pythonFunction(new OT::PythonFieldToPointFunction(pyObj)); 64 FieldToPointFunction(PyObject * pyObj) 67 if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Object, 0))) [all …]
|
H A D | PointToFieldFunction.i | 18 canConvert< _PyObject_, OT::PointToFieldFunction >(PyObject * pyObj) 21 …if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__PointToFieldFunction, SWIG_POINTER_NO_NU… 24 …} else if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__PointToFieldFunctionImplementatio… 28 return PyCallable_Check(pyObj); 35 convert< _PyObject_, OT::PointToFieldFunction >(PyObject * pyObj) 38 …if ( SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__PointToFieldFunction, SWIG_POINTER_NO_N… 44 } else if (!PyCallable_Check(pyObj)) { 47 OT::PointToFieldFunction pythonFunction(new OT::PythonPointToFieldFunction(pyObj)); 64 PointToFieldFunction(PyObject * pyObj) 67 if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Object, 0))) [all …]
|
H A D | FieldFunction.i | 18 canConvert< _PyObject_, OT::FieldFunction >(PyObject * pyObj) 21 … if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__FieldFunction, SWIG_POINTER_NO_NULL))) { 24 …} else if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__FieldFunctionImplementation, SWIG… 28 return PyCallable_Check(pyObj); 35 convert< _PyObject_, OT::FieldFunction >(PyObject * pyObj) 38 if ( SWIG_IsOK(SWIG_ConvertPtr( pyObj, &ptr, SWIGTYPE_p_OT__FieldFunction, 0 ) ) ) { 44 } else if (!PyCallable_Check(pyObj)) { 47 OT::FieldFunction pythonFunction(new OT::PythonFieldFunction(pyObj)); 64 FieldFunction(PyObject * pyObj) 67 if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__Object, 0))) [all …]
|
H A D | ARMACoefficients.i | 20 convert<_PyObject_, OT::SquareMatrix>(PyObject * pyObj) 23 …if (! SWIG_IsOK(SWIG_ConvertPtr( pyObj, &ptr, SWIG_TypeQuery("OT::SquareMatrix *"), SWIG_POINTER_N… 42 OT::Collection<OT::SquareMatrix> (PyObject * pyObj) 44 return OT::buildCollectionFromPySequence<OT::SquareMatrix>( pyObj ); 52 ARMACoefficients(PyObject * pyObj) 54 …lection<OT::SquareMatrix> > p_coll = OT::buildCollectionFromPySequence<OT::SquareMatrix>( pyObj );
|
H A D | IntersectionEvent.i | 17 canConvert< _PyObject_, OT::RandomVector >(PyObject * pyObj) 20 … if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__RandomVector, SWIG_POINTER_NO_NULL))) { 24 …else if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__RandomVectorImplementation, SWIG_PO… 34 convert< _PyObject_, OT::RandomVector >(PyObject * pyObj) 37 … if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__RandomVector, SWIG_POINTER_NO_NULL))) { 41 …else if (SWIG_IsOK(SWIG_ConvertPtr(pyObj, &ptr, SWIGTYPE_p_OT__RandomVectorImplementation, SWIG_PO…
|
/dports/devel/pyside2-tools/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | basewrapper.h | 71 LIBSHIBOKEN_API void SbkDeallocWrapper(PyObject *pyObj); 168 LIBSHIBOKEN_API bool checkType(PyTypeObject *pyObj); 173 LIBSHIBOKEN_API bool isUserType(PyTypeObject *pyObj); 283 LIBSHIBOKEN_API bool checkType(PyObject *pyObj); 289 LIBSHIBOKEN_API bool isUserType(PyObject *pyObj); 294 LIBSHIBOKEN_API Py_hash_t hash(PyObject *pyObj); 328 LIBSHIBOKEN_API bool hasCppWrapper(SbkObject *pyObj); 345 LIBSHIBOKEN_API bool hasOwnership(SbkObject *pyObj); 353 LIBSHIBOKEN_API void getOwnership(PyObject *pyObj); 358 LIBSHIBOKEN_API void getOwnership(SbkObject *pyObj); [all …]
|
H A D | basewrapper.cpp | 426 if (PyObject_IS_GC(pyObj)) in SbkDeallocWrapperCommon() 498 SbkDeallocWrapper(pyObj); in SbkDeallocQAppWrapper() 1218 if (!pyObj) in setSequenceOwnership() 1284 invalidate(pyObj); in callCppDestructors() 1285 if (pyObj->d->validCppObject && pyObj->d->containsCppWrapper) { in callCppDestructors() 1289 delete[] pyObj->d->cptr; in callCppDestructors() 1320 if (pyObj) in getOwnership() 1436 if (pyObj->d->cptr) in cppPointer() 1470 if (!pyObj || pyObj == Py_None in isValid() 1494 if (!pyObj) in isValid() [all …]
|
H A D | shibokenbuffer.cpp | 44 bool Shiboken::Buffer::checkType(PyObject *pyObj) in checkType() argument 47 return PyObject_CheckBuffer(pyObj) != 0; in checkType() 49 return PyObject_CheckReadBuffer(pyObj) != 0; in checkType() 53 void *Shiboken::Buffer::getPointer(PyObject *pyObj, Py_ssize_t *size) in getPointer() argument 58 if (PyObject_GetBuffer(pyObj, &view, PyBUF_ND) == 0) { in getPointer() 69 PyObject_AsReadBuffer(pyObj, &buffer, &bufferSize); in getPointer()
|
/dports/devel/pyside2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | basewrapper.h | 71 LIBSHIBOKEN_API void SbkDeallocWrapper(PyObject *pyObj); 168 LIBSHIBOKEN_API bool checkType(PyTypeObject *pyObj); 173 LIBSHIBOKEN_API bool isUserType(PyTypeObject *pyObj); 283 LIBSHIBOKEN_API bool checkType(PyObject *pyObj); 289 LIBSHIBOKEN_API bool isUserType(PyObject *pyObj); 294 LIBSHIBOKEN_API Py_hash_t hash(PyObject *pyObj); 328 LIBSHIBOKEN_API bool hasCppWrapper(SbkObject *pyObj); 345 LIBSHIBOKEN_API bool hasOwnership(SbkObject *pyObj); 353 LIBSHIBOKEN_API void getOwnership(PyObject *pyObj); 358 LIBSHIBOKEN_API void getOwnership(SbkObject *pyObj); [all …]
|
H A D | basewrapper.cpp | 426 if (PyObject_IS_GC(pyObj)) in SbkDeallocWrapperCommon() 498 SbkDeallocWrapper(pyObj); in SbkDeallocQAppWrapper() 1218 if (!pyObj) in setSequenceOwnership() 1284 invalidate(pyObj); in callCppDestructors() 1285 if (pyObj->d->validCppObject && pyObj->d->containsCppWrapper) { in callCppDestructors() 1289 delete[] pyObj->d->cptr; in callCppDestructors() 1320 if (pyObj) in getOwnership() 1436 if (pyObj->d->cptr) in cppPointer() 1470 if (!pyObj || pyObj == Py_None in isValid() 1494 if (!pyObj) in isValid() [all …]
|
H A D | shibokenbuffer.cpp | 44 bool Shiboken::Buffer::checkType(PyObject *pyObj) in checkType() argument 47 return PyObject_CheckBuffer(pyObj) != 0; in checkType() 49 return PyObject_CheckReadBuffer(pyObj) != 0; in checkType() 53 void *Shiboken::Buffer::getPointer(PyObject *pyObj, Py_ssize_t *size) in getPointer() argument 58 if (PyObject_GetBuffer(pyObj, &view, PyBUF_ND) == 0) { in getPointer() 69 PyObject_AsReadBuffer(pyObj, &buffer, &bufferSize); in getPointer()
|
/dports/devel/shiboken2/pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/ |
H A D | basewrapper.h | 71 LIBSHIBOKEN_API void SbkDeallocWrapper(PyObject *pyObj); 168 LIBSHIBOKEN_API bool checkType(PyTypeObject *pyObj); 173 LIBSHIBOKEN_API bool isUserType(PyTypeObject *pyObj); 283 LIBSHIBOKEN_API bool checkType(PyObject *pyObj); 289 LIBSHIBOKEN_API bool isUserType(PyObject *pyObj); 294 LIBSHIBOKEN_API Py_hash_t hash(PyObject *pyObj); 328 LIBSHIBOKEN_API bool hasCppWrapper(SbkObject *pyObj); 345 LIBSHIBOKEN_API bool hasOwnership(SbkObject *pyObj); 353 LIBSHIBOKEN_API void getOwnership(PyObject *pyObj); 358 LIBSHIBOKEN_API void getOwnership(SbkObject *pyObj); [all …]
|
H A D | basewrapper.cpp | 426 if (PyObject_IS_GC(pyObj)) in SbkDeallocWrapperCommon() 498 SbkDeallocWrapper(pyObj); in SbkDeallocQAppWrapper() 1218 if (!pyObj) in setSequenceOwnership() 1284 invalidate(pyObj); in callCppDestructors() 1285 if (pyObj->d->validCppObject && pyObj->d->containsCppWrapper) { in callCppDestructors() 1289 delete[] pyObj->d->cptr; in callCppDestructors() 1320 if (pyObj) in getOwnership() 1436 if (pyObj->d->cptr) in cppPointer() 1470 if (!pyObj || pyObj == Py_None in isValid() 1494 if (!pyObj) in isValid() [all …]
|
H A D | shibokenbuffer.cpp | 44 bool Shiboken::Buffer::checkType(PyObject *pyObj) in checkType() argument 47 return PyObject_CheckBuffer(pyObj) != 0; in checkType() 49 return PyObject_CheckReadBuffer(pyObj) != 0; in checkType() 53 void *Shiboken::Buffer::getPointer(PyObject *pyObj, Py_ssize_t *size) in getPointer() argument 58 if (PyObject_GetBuffer(pyObj, &view, PyBUF_ND) == 0) { in getPointer() 69 PyObject_AsReadBuffer(pyObj, &buffer, &bufferSize); in getPointer()
|
/dports/sysutils/libdnf/libdnf-0.64.0/python/hawkey/ |
H A D | iutil-py.hpp | 44 constexpr UniquePtrPyObject() noexcept : pyObj(NULL) {} in UniquePtrPyObject() 45 explicit UniquePtrPyObject(PyObject * pyObj) noexcept : pyObj(pyObj) {} in UniquePtrPyObject() argument 46 UniquePtrPyObject(UniquePtrPyObject && src) noexcept : pyObj(src.pyObj) { src.pyObj = NULL; } in UniquePtrPyObject() 48 explicit operator bool() const noexcept { return pyObj != NULL; } in operator bool() 49 PyObject * get() const noexcept { return pyObj; } in get() 51 void reset(PyObject * pyObj = NULL) noexcept; 54 PyObject * pyObj; member in UniquePtrPyObject 59 auto tmpObj = pyObj; in release() 60 pyObj = NULL; in release()
|
/dports/science/gnudatalanguage/gdl-1.0.1/src/ |
H A D | gdlpython.cpp | 87 BaseGDL* FromPython( PyObject* pyObj) argument 89 if( !PyArray_Check( pyObj)) 92 if( PyUnicode_Check( pyObj)) 97 if( PyString_Check( pyObj)) 101 if( PyInt_Check( pyObj)) 103 return new DLongGDL( PyInt_AsLong( pyObj)); 106 if( PyLong_Check( pyObj)) 110 if( PyFloat_Check( pyObj)) 114 if( PyComplex_Check( pyObj)) 117 re = PyComplex_RealAsDouble( pyObj); [all …]
|
/dports/misc/usd/USD-21.11/pxr/usd/ar/ |
H A D | pyResolverContext_v1.cpp | 59 Ar_CanConvertResolverContextFromPython(PyObject* pyObj) in Ar_CanConvertResolverContextFromPython() argument 63 if ((*canMakeContextFrom)(pyObj, NULL)) { in Ar_CanConvertResolverContextFromPython() 71 Ar_ConvertResolverContextFromPython(PyObject* pyObj) in Ar_ConvertResolverContextFromPython() argument 77 if ((*makeContextFrom)(pyObj, &context)) { in Ar_ConvertResolverContextFromPython() 87 TfPyObjWrapper pyObj; in Ar_ConvertResolverContextToPython() local 91 if ((*convertToPython)(context, &pyObj)) { in Ar_ConvertResolverContextToPython() 95 return pyObj; in Ar_ConvertResolverContextToPython()
|
/dports/x11/radare-cutter/r2cutter-0.1.1/src/common/ |
H A D | PythonManager.cpp | 90 static void pySideDestructionVisitor(SbkObject* pyObj, void* data) in pySideDestructionVisitor() argument 96 if (pyObj == pyQApp || !PyObject_TypeCheck(pyObj, pyQObjectType)) { in pySideDestructionVisitor() 99 if (!Shiboken::Object::hasOwnership(pyObj) || !Shiboken::Object::isValid(pyObj, false)) { in pySideDestructionVisitor() 104 PyObject *repr = PyObject_Repr(reinterpret_cast<PyObject *>(pyObj)); in pySideDestructionVisitor() 116 Shiboken::Object::setValidCpp(pyObj, false); in pySideDestructionVisitor() 118 Shiboken::callCppDestructor<QObject>(Shiboken::Object::cppPointer(pyObj, pyQObjectType)); in pySideDestructionVisitor()
|
/dports/science/dakota/dakota-6.13.0-release-public.src-UI/packages/external/C3/wrappers/python/ |
H A D | python_caller.c | 46 PyObject* pyObj = PyCapsule_New((void*)obj,NULL,&destruct_obj); in alloc_cobj() local 47 return pyObj; in alloc_cobj() 51 PyObject* pyObj; in assign() local 56 if(!PyArg_ParseTuple(args,"OOOO",&pyObj,&pyDim,&pyF,&pyParams,NULL)) return NULL; in assign() 65 void* objPtr = PyCapsule_GetPointer(pyObj,NULL); in assign() 133 PyObject* pyObj; in eval_test_5d() local 135 if(!PyArg_ParseTuple(args,"O",&pyObj, NULL)) return NULL; in eval_test_5d() 138 void* objPtr = PyCapsule_GetPointer(pyObj,NULL); in eval_test_5d()
|
/dports/misc/usd/USD-21.11/pxr/usd/sdf/ |
H A D | wrapSpec.cpp | 59 _WrapSetInfo(SdfSpec &self, const TfToken &name, const object& pyObj) in _WrapSetInfo() argument 69 value = extract<VtValue>(pyObj)(); in _WrapSetInfo() 75 value = extract<SdfPath>(pyObj)(); in _WrapSetInfo() 78 value = extract<TfTokenVector>(pyObj)(); in _WrapSetInfo() 81 value = extract<SdfVariantSelectionMap>(pyObj)(); in _WrapSetInfo() 84 value = extract<VtValue>(pyObj)(); in _WrapSetInfo()
|
/dports/databases/py-qt5-sql/PyQt5-5.15.4/qpy/QtCore/ |
H A D | qpycore_event_handlers.cpp | 91 void PyQtMonitor::ignore(sipSimpleWrapper *pyObj) in ignore() argument 93 void *addr = sipGetAddress(pyObj); in ignore() 115 PyObject *pyObj = sipGetPyObject(cppInst, sipType_QObject); in on_destroyed() local 117 if (pyObj) in on_destroyed() 118 sipInstanceDestroyed((sipSimpleWrapper *)pyObj); in on_destroyed()
|