本文整理汇总了C++中sipIsDerived函数的典型用法代码示例。如果您正苦于以下问题:C++ sipIsDerived函数的具体用法?C++ sipIsDerived怎么用?C++ sipIsDerived使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sipIsDerived函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:rff255,项目名称:python-qt5,代码行数:10,代码来源:sipQtQmlQQmlParserStatus.cpp
示例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);
}
}
开发者ID:BackupTheBerlios,项目名称:sems-svn,代码行数:12,代码来源:sippy_sems_libAmEvent.cpp
示例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);
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:49,代码来源:sipQtGuiQRegExpValidator.cpp
示例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);
}
}
开发者ID:BackupTheBerlios,项目名称:sems-svn,代码行数:16,代码来源:sippy_sems_libPySemsB2BDialog.cpp
示例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;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:44,代码来源:sipQtXmlQXmlInputSource.cpp
示例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);
}
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:19,代码来源:sipQtGuiQUndoCommand.cpp
示例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);
}
}
开发者ID:annelida,项目名称:stuff,代码行数:19,代码来源:sipQtCoreQTranslator.cpp
示例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);
}
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:19,代码来源:sipQtCoreQPauseAnimation.cpp
示例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);
}
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:19,代码来源:sipQtGuiQSpacerItem.cpp
示例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);
}
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:19,代码来源:sipQtGuiQIconEngineV2.cpp
示例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);
}
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:19,代码来源:sipQtCoreQSystemLocale.cpp
示例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);
}
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:20,代码来源:sipQtGuiQBitmap.cpp
示例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);
}
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:20,代码来源:sipQtCoreQFinalState.cpp
示例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);
}
}
开发者ID:annelida,项目名称:stuff,代码行数:20,代码来源:sipQtGuiQFileIconProvider.cpp
示例16: sipIsDerived
static PyObject *meth_QScriptEngineAgent_supportsExtension(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QScriptEngineAgent::Extension a0;
QScriptEngineAgent *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, sipType_QScriptEngineAgent_Extension, &a0))
{
bool sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = (sipSelfWasArg ? sipCpp->QScriptEngineAgent::supportsExtension(a0) : sipCpp->supportsExtension(a0));
Py_END_ALLOW_THREADS
return PyBool_FromLong(sipRes);
}
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:20,代码来源:sipQtScriptQScriptEngineAgent.cpp
示例17: sipIsDerived
static PyObject *meth_QGraphicsDropShadowEffect_boundingRectFor(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
const QRectF* a0;
const QGraphicsDropShadowEffect *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGraphicsDropShadowEffect, &sipCpp, sipType_QRectF, &a0))
{
QRectF*sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QRectF((sipSelfWasArg ? sipCpp->QGraphicsDropShadowEffect::boundingRectFor(*a0) : sipCpp->boundingRectFor(*a0)));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
}
}
开发者ID:annelida,项目名称:stuff,代码行数:20,代码来源:sipQtGuiQGraphicsDropShadowEffect.cpp
示例18: sipIsDerived
static PyObject *meth_QGraphicsLayout_getContentsMargins(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
qreal a0;
qreal a1;
qreal a2;
qreal a3;
const QGraphicsLayout *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGraphicsLayout, &sipCpp))
{
Py_BEGIN_ALLOW_THREADS
(sipSelfWasArg ? sipCpp->QGraphicsLayout::getContentsMargins(&a0,&a1,&a2,&a3) : sipCpp->getContentsMargins(&a0,&a1,&a2,&a3));
Py_END_ALLOW_THREADS
return sipBuildResult(0,"(dddd)",a0,a1,a2,a3);
}
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:21,代码来源:sipQtGuiQGraphicsLayout.cpp
示例19: sipIsDerived
static PyObject *meth_QSGMaterialShader_initialize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
sipQSGMaterialShader *sipCpp;
if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSGMaterialShader, &sipCpp))
{
sipCpp->sipProtectVirt_initialize(sipSelfWasArg);
Py_INCREF(Py_None);
return Py_None;
}
}
/* Raise an exception if the arguments couldn't be parsed. */
sipNoMethod(sipParseErr, sipName_QSGMaterialShader, sipName_initialize, doc_QSGMaterialShader_initialize);
return NULL;
}
开发者ID:rff255,项目名称:python-qt5,代码行数:22,代码来源:sipQtQuickQSGMaterialShader.cpp
示例20: sipIsDerived
static PyObject *meth_QsciLexerPOV_refreshProperties(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));
{
QsciLexerPOV *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QsciLexerPOV, &sipCpp))
{
(sipSelfWasArg ? sipCpp->QsciLexerPOV::refreshProperties() : sipCpp->refreshProperties());
Py_INCREF(Py_None);
return Py_None;
}
}
/* Raise an exception if the arguments couldn't be parsed. */
sipNoMethod(sipParseErr, sipName_QsciLexerPOV, sipName_refreshProperties, doc_QsciLexerPOV_refreshProperties);
return NULL;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:22,代码来源:sipQsciQsciLexerPOV.cpp
注:本文中的sipIsDerived函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论