本文整理汇总了C++中sipIsDerived函数的典型用法代码示例。如果您正苦于以下问题:C++ sipIsDerived函数的具体用法?C++ sipIsDerived怎么用?C++ sipIsDerived使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sipIsDerived函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dealloc_QQmlParserStatus
static void dealloc_QQmlParserStatus(sipSimpleWrapper *sipSelf)
{
if (sipIsDerived(sipSelf))
reinterpret_cast<sipQQmlParserStatus *>(sipGetAddress(sipSelf))->sipPySelf = NULL;
if (sipIsPyOwned(sipSelf))
{
release_QQmlParserStatus(sipGetAddress(sipSelf),sipSelf->flags);
}
}
示例2: dealloc_AmEvent
static void dealloc_AmEvent(sipWrapper *sipSelf)
{
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmEvent()\n");
if (sipIsDerived(sipSelf))
reinterpret_cast<sipAmEvent *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
if (sipIsPyOwned(sipSelf))
{
release_AmEvent(sipSelf->u.cppPtr,sipSelf->flags);
}
}
示例3: sipIsDerived
static PyObject *meth_QRegExpValidator_validate(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
if (sipIsAPIEnabled(sipName_QString, 2, 0))
{
QString * a0;
int a0State = 0;
int a1;
QRegExpValidator *sipCpp;
static const char *sipKwdList[] = {
sipName_input,
sipName_pos,
};
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1i", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
{
QValidator::State sipRes;
PyObject *sipResult;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QRegExpValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));
Py_END_ALLOW_THREADS
sipResult = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
sipReleaseType(a0,sipType_QString,a0State);
return sipResult;
}
}
if (sipIsAPIEnabled(sipName_QString, 0, 2))
{
QString * a0;
int a1;
QRegExpValidator *sipCpp;
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9i", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QString,&a0, &a1))
{
QValidator::State sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QRegExpValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));
Py_END_ALLOW_THREADS
return sipBuildResult(0,"(Fi)",sipRes,sipType_QValidator_State,a1);
}
示例4: dealloc_PySemsB2BDialog
static void dealloc_PySemsB2BDialog(sipWrapper *sipSelf)
{
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_PySemsB2BDialog()\n");
if (sipIsDerived(sipSelf))
reinterpret_cast<sipPySemsB2BDialog *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
if (sipIsPyOwned(sipSelf))
{
#line 17 "PySemsB2BDialog.sip"
fprintf(stderr,"------------- dealloc_PySemsB2BDialog ----------\n");
#line 500 "sippy_sems_libPySemsB2BDialog.cpp"
release_PySemsB2BDialog(sipSelf->u.cppPtr,sipSelf->flags);
}
}
示例5: sipIsDerived
static PyObject *meth_QXmlInputSource_setData(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QString* a0;
int a0State = 0;
QXmlInputSource *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QXmlInputSource, &sipCpp, sipType_QString,&a0, &a0State))
{
Py_BEGIN_ALLOW_THREADS
(sipSelfWasArg ? sipCpp->QXmlInputSource::setData(*a0) : sipCpp->setData(*a0));
Py_END_ALLOW_THREADS
sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
Py_INCREF(Py_None);
return Py_None;
}
}
{
const QByteArray* a0;
int a0State = 0;
QXmlInputSource *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QXmlInputSource, &sipCpp, sipType_QByteArray, &a0, &a0State))
{
Py_BEGIN_ALLOW_THREADS
(sipSelfWasArg ? sipCpp->QXmlInputSource::setData(*a0) : sipCpp->setData(*a0));
Py_END_ALLOW_THREADS
sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
Py_INCREF(Py_None);
return Py_None;
}
}
/* Raise an exception if the arguments couldn't be parsed. */
sipNoMethod(sipParseErr, sipName_QXmlInputSource, sipName_setData, doc_QXmlInputSource_setData);
return NULL;
}
示例6: sipIsDerived
static PyObject *meth_QPlainTextDocumentLayout_pageCount(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QPlainTextDocumentLayout *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPlainTextDocumentLayout, &sipCpp))
{
int sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QPlainTextDocumentLayout::pageCount() : sipCpp->pageCount());
Py_END_ALLOW_THREADS
return SIPLong_FromLong(sipRes);
}
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:19,代码来源:sipQtGuiQPlainTextDocumentLayout.cpp
示例7: sipIsDerived
static PyObject *meth_QUndoCommand_id(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QUndoCommand *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUndoCommand, &sipCpp))
{
int sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QUndoCommand::id() : sipCpp->id());
Py_END_ALLOW_THREADS
return SIPLong_FromLong(sipRes);
}
}
示例8: sipIsDerived
static PyObject *meth_QTranslator_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QTranslator *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTranslator, &sipCpp))
{
bool sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QTranslator::isEmpty() : sipCpp->isEmpty());
Py_END_ALLOW_THREADS
return PyBool_FromLong(sipRes);
}
}
示例9: sipIsDerived
static PyObject *meth_QPauseAnimation_duration(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QPauseAnimation *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPauseAnimation, &sipCpp))
{
int sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QPauseAnimation::duration() : sipCpp->duration());
Py_END_ALLOW_THREADS
return SIPLong_FromLong(sipRes);
}
}
示例10: sipIsDerived
static PyObject *meth_QSpacerItem_sizeHint(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QSpacerItem *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSpacerItem, &sipCpp))
{
QSize *sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QSize((sipSelfWasArg ? sipCpp->QSpacerItem::sizeHint() : sipCpp->sizeHint()));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
}
}
示例11: sipIsDerived
static PyObject *meth_QIconEngineV2_key(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QIconEngineV2 *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIconEngineV2, &sipCpp))
{
QString*sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QString((sipSelfWasArg ? sipCpp->QIconEngineV2::key() : sipCpp->key()));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QString,NULL);
}
}
示例12: sipIsDerived
static PyObject *meth_QSystemLocale_fallbackLocale(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QSystemLocale *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSystemLocale, &sipCpp))
{
QLocale*sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QLocale((sipSelfWasArg ? sipCpp->QSystemLocale::fallbackLocale() : sipCpp->fallbackLocale()));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QLocale,NULL);
}
}
示例13: sipIsDerived
static PyObject *meth_QBitmap_metric(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QPaintDevice::PaintDeviceMetric a0;
sipQBitmap *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QBitmap, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
{
int sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);
Py_END_ALLOW_THREADS
return SIPLong_FromLong(sipRes);
}
}
示例14: sipIsDerived
static PyObject *meth_QFinalState_event(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QEvent * a0;
sipQFinalState *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QFinalState, &sipCpp, sipType_QEvent, &a0))
{
bool sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
Py_END_ALLOW_THREADS
return PyBool_FromLong(sipRes);
}
}
示例15: sipIsDerived
static PyObject *meth_QFileIconProvider_icon(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QFileIconProvider::IconType a0;
const QFileIconProvider *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFileIconProvider, &sipCpp, sipType_QFileIconProvider_IconType, &a0))
{
QIcon*sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QIcon((sipSelfWasArg ? sipCpp->QFileIconProvider::icon(a0) : sipCpp->icon(a0)));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
}
}