PythonQt
|
#include "PythonQtPythonInclude.h"
#include "PythonQt.h"
#include "PythonQtMisc.h"
#include "PythonQtClassInfo.h"
#include "PythonQtMethodInfo.h"
#include <QList>
#include <vector>
Go to the source code of this file.
Classes | |
class | PythonQtConv |
a static class that offers methods for type conversion More... | |
Macros | |
#define | PythonQtRegisterListTemplateConverter(type, innertype) |
#define | PythonQtRegisterListTemplateConverterForKnownClass(type, innertype) |
#define | PythonQtRegisterQPairConverter(type1, type2) |
#define | PythonQtRegisterIntegerMapConverter(type, innertype) |
#define | PythonQtRegisterListTemplateQPairConverter(listtype, type1, type2) |
#define | PythonQtRegisterToolClassesTemplateConverter(innertype) |
#define | PythonQtRegisterToolClassesTemplateConverterForKnownClass(innertype) |
Typedefs | |
typedef PyObject * | PythonQtConvertMetaTypeToPythonCB(const void *inObject, int metaTypeId) |
typedef bool | PythonQtConvertPythonToMetaTypeCB(PyObject *inObject, void *outObject, int metaTypeId, bool strict) |
typedef QVariant | PythonQtConvertPythonSequenceToQVariantListCB(PyObject *inObject) |
Functions | |
template<class ListType , class T > | |
PyObject * | PythonQtConvertListOfValueTypeToPythonList (const void *inList, int metaTypeId) |
template<class ListType , class T > | |
bool | PythonQtConvertPythonListToListOfValueType (PyObject *obj, void *outList, int metaTypeId, bool) |
template<class ListType , class T > | |
PyObject * | PythonQtConvertListOfKnownClassToPythonList (const void *inList, int metaTypeId) |
template<class ListType , class T > | |
bool | PythonQtConvertPythonListToListOfKnownClass (PyObject *obj, void *outList, int metaTypeId, bool) |
template<class T1 , class T2 > | |
PyObject * | PythonQtConvertPairToPython (const void *inPair, int metaTypeId) |
template<class T1 , class T2 > | |
bool | PythonQtConvertPythonToPair (PyObject *obj, void *outPair, int metaTypeId, bool) |
template<class ListType , class T1 , class T2 > | |
PyObject * | PythonQtConvertListOfPairToPythonList (const void *inList, int metaTypeId) |
template<class ListType , class T1 , class T2 > | |
bool | PythonQtConvertPythonListToListOfPair (PyObject *obj, void *outList, int metaTypeId, bool) |
template<class MapType , class T > | |
PyObject * | PythonQtConvertIntegerMapToPython (const void *inMap, int metaTypeId) |
template<class MapType , class T > | |
bool | PythonQtConvertPythonToIntegerMap (PyObject *val, void *outMap, int metaTypeId, bool) |
#define PythonQtRegisterIntegerMapConverter | ( | type, | |
innertype | |||
) |
Definition at line 76 of file PythonQtConversion.h.
#define PythonQtRegisterListTemplateConverter | ( | type, | |
innertype | |||
) |
Definition at line 58 of file PythonQtConversion.h.
#define PythonQtRegisterListTemplateConverterForKnownClass | ( | type, | |
innertype | |||
) |
Definition at line 64 of file PythonQtConversion.h.
#define PythonQtRegisterListTemplateQPairConverter | ( | listtype, | |
type1, | |||
type2 | |||
) |
Definition at line 82 of file PythonQtConversion.h.
#define PythonQtRegisterQPairConverter | ( | type1, | |
type2 | |||
) |
Definition at line 70 of file PythonQtConversion.h.
#define PythonQtRegisterToolClassesTemplateConverter | ( | innertype | ) |
Definition at line 90 of file PythonQtConversion.h.
#define PythonQtRegisterToolClassesTemplateConverterForKnownClass | ( | innertype | ) |
Definition at line 95 of file PythonQtConversion.h.
typedef PyObject* PythonQtConvertMetaTypeToPythonCB(const void *inObject, int metaTypeId) |
Definition at line 54 of file PythonQtConversion.h.
typedef QVariant PythonQtConvertPythonSequenceToQVariantListCB(PyObject *inObject) |
Definition at line 56 of file PythonQtConversion.h.
typedef bool PythonQtConvertPythonToMetaTypeCB(PyObject *inObject, void *outObject, int metaTypeId, bool strict) |
Definition at line 55 of file PythonQtConversion.h.
PyObject* PythonQtConvertIntegerMapToPython | ( | const void * | inMap, |
int | metaTypeId | ||
) |
Definition at line 468 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateTypeName(), and PythonQtUtils::typeName().
PyObject* PythonQtConvertListOfKnownClassToPythonList | ( | const void * | inList, |
int | metaTypeId | ||
) |
Definition at line 287 of file PythonQtConversion.h.
References PythonQtInstanceWrapper::_ownedByPythonQt, PythonQtClassInfo::className(), PythonQtPrivate::getClassInfo(), PythonQtMethodInfo::getInnerListTypeName(), PythonQt::priv(), PythonQtUtils::typeName(), and PythonQtPrivate::wrapPtr().
PyObject* PythonQtConvertListOfPairToPythonList | ( | const void * | inList, |
int | metaTypeId | ||
) |
Definition at line 416 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), and PythonQtUtils::typeName().
PyObject* PythonQtConvertListOfValueTypeToPythonList | ( | const void * | inList, |
int | metaTypeId | ||
) |
Definition at line 237 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateMetaType(), and PythonQtUtils::typeName().
PyObject* PythonQtConvertPairToPython | ( | const void * | inPair, |
int | metaTypeId | ||
) |
Definition at line 347 of file PythonQtConversion.h.
References PythonQtConv::convertQtValueToPythonInternal(), PythonQtMethodInfo::getInnerTemplateTypeName(), and PythonQtUtils::typeName().
bool PythonQtConvertPythonListToListOfKnownClass | ( | PyObject * | obj, |
void * | outList, | ||
int | metaTypeId, | ||
bool | |||
) |
Definition at line 307 of file PythonQtConversion.h.
References PythonQtConv::castWrapperTo(), PythonQtClassInfo::className(), PythonQtPrivate::getClassInfo(), PythonQtMethodInfo::getInnerListTypeName(), PythonQt::priv(), PythonQtInstanceWrapper_Type, and PythonQtUtils::typeName().
bool PythonQtConvertPythonListToListOfPair | ( | PyObject * | obj, |
void * | outList, | ||
int | metaTypeId, | ||
bool | |||
) |
Definition at line 435 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), and PythonQtUtils::typeName().
bool PythonQtConvertPythonListToListOfValueType | ( | PyObject * | obj, |
void * | outList, | ||
int | metaTypeId, | ||
bool | |||
) |
Definition at line 254 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateMetaType(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeName().
bool PythonQtConvertPythonToIntegerMap | ( | PyObject * | val, |
void * | outMap, | ||
int | metaTypeId, | ||
bool | |||
) |
Definition at line 496 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtConv::PyObjGetInt(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeName().
bool PythonQtConvertPythonToPair | ( | PyObject * | obj, |
void * | outPair, | ||
int | metaTypeId, | ||
bool | |||
) |
Definition at line 368 of file PythonQtConversion.h.
References PythonQtMethodInfo::getInnerTemplateTypeName(), PythonQtConv::PyObjToQVariant(), and PythonQtUtils::typeName().