当前位置: 首页>>代码示例>>C++>>正文


C++ setPrototype函数代码示例

本文整理汇总了C++中setPrototype函数的典型用法代码示例。如果您正苦于以下问题:C++ setPrototype函数的具体用法?C++ setPrototype怎么用?C++ setPrototype使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setPrototype函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ASSERT_ARG

void JSProxy::setTarget(JSGlobalData& globalData, JSGlobalObject* globalObject)
{
    ASSERT_ARG(globalObject, globalObject);
    m_target.set(globalData, this, globalObject);
    setPrototype(globalData, globalObject->prototype());
    resetInheritorID(globalData);
}
开发者ID:dog-god,项目名称:iptv,代码行数:7,代码来源:JSProxy.cpp

示例2: currentFileInfo

void DataSourceView::createDirectory()
{
	QFileInfo fi = currentFileInfo();
	CreateDirectoryDialog dlg(fi.absoluteFilePath());

	if (dlg.exec() != QDialog::Accepted)
		return;

	if (QFile::exists(fi.absoluteFilePath() + "/" + dlg.name()))
	{
		QMessageBox::warning(
			this,
			tr("Directory exists"),
			tr("Directory %1 already exists.").arg(dlg.name())
		);
		return;
	}

	auto creator = new DirectoryCreator(fi.absoluteFilePath(), dlg.name(), this);

	if (dlg.hasPrototype())
		creator->setPrototype(dlg.prototype());

	creator->work();
}
开发者ID:ZIMA-Engineering,项目名称:ZIMA-CAD-Parts,代码行数:25,代码来源:datasourceview.cpp

示例3: setPrototype

// Set prototype, and also insert the object prototype at the end of the chain.
void JSGlobalObject::resetPrototype(VM& vm, JSValue prototype)
{
    setPrototype(vm, prototype);

    JSObject* oldLastInPrototypeChain = lastInPrototypeChain(this);
    JSObject* objectPrototype = m_objectPrototype.get();
    if (oldLastInPrototypeChain != objectPrototype)
        oldLastInPrototypeChain->setPrototype(vm, objectPrototype);
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:10,代码来源:JSGlobalObject.cpp

示例4: JSSVGPathSeg

JSSVGPathSegClosePath::JSSVGPathSegClosePath(ExecState* exec, SVGPathSegClosePath* impl)
    : JSSVGPathSeg(exec, impl)
{
    setPrototype(JSSVGPathSegClosePathPrototype::self(exec));
}
开发者ID:FilipBE,项目名称:qtextended,代码行数:5,代码来源:JSSVGPathSegClosePath.cpp

示例5: JSSVGUnitTypesConstructor

 JSSVGUnitTypesConstructor(ExecState* exec)
 {
     setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
     putDirect(exec->propertyNames().prototype, JSSVGUnitTypesPrototype::self(exec), None);
 }
开发者ID:Crawping,项目名称:davinci,代码行数:5,代码来源:JSSVGUnitTypes.cpp

示例6: JSHTMLElement

JSHTMLScriptElement::JSHTMLScriptElement(ExecState* exec, HTMLScriptElement* impl)
    : JSHTMLElement(exec, impl)
{
    setPrototype(JSHTMLScriptElementPrototype::self(exec));
}
开发者ID:pk-codebox-evo,项目名称:remixos-usb-tool,代码行数:5,代码来源:JSHTMLScriptElement.cpp

示例7: m_doc

JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor(ExecState* exec, Document* d)
    : m_doc(d)
{
    setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
    put(exec, lengthPropertyName, jsNumber(4), ReadOnly|DontDelete|DontEnum);
}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:6,代码来源:JSHTMLOptionElementConstructor.cpp

示例8: JSSVGPathSeg

JSSVGPathSegCurvetoQuadraticSmoothRel::JSSVGPathSegCurvetoQuadraticSmoothRel(ExecState* exec, SVGPathSegCurvetoQuadraticSmoothRel* impl)
    : JSSVGPathSeg(exec, impl)
{
    setPrototype(JSSVGPathSegCurvetoQuadraticSmoothRelPrototype::self(exec));
}
开发者ID:FilipBE,项目名称:qtextended,代码行数:5,代码来源:JSSVGPathSegCurvetoQuadraticSmoothRel.cpp

示例9: JSSVGElement

JSSVGFEPointLightElement::JSSVGFEPointLightElement(ExecState* exec, SVGFEPointLightElement* impl)
    : JSSVGElement(exec, impl)
{
    setPrototype(JSSVGFEPointLightElementPrototype::self(exec));
}
开发者ID:FilipBE,项目名称:qtextended,代码行数:5,代码来源:JSSVGFEPointLightElement.cpp

示例10: m_impl

JSClipboard::JSClipboard(ExecState* exec, Clipboard* clipboard)
    : m_impl(clipboard)
{
    setPrototype(JSClipboardPrototype::self(exec));
}
开发者ID:jackiekaon,项目名称:owb-mirror,代码行数:5,代码来源:kjs_events.cpp

示例11: JSSVGTextPositioningElement

JSSVGTRefElement::JSSVGTRefElement(ExecState* exec, SVGTRefElement* impl)
    : JSSVGTextPositioningElement(exec, impl)
{
    setPrototype(JSSVGTRefElementPrototype::self(exec));
}
开发者ID:pk-codebox-evo,项目名称:remixos-usb-tool,代码行数:5,代码来源:JSSVGTRefElement.cpp

示例12: m_impl

JSNodeIterator::JSNodeIterator(ExecState* exec, NodeIterator* impl)
    : m_impl(impl)
{
    setPrototype(JSNodeIteratorPrototype::self(exec));
}
开发者ID:FilipBE,项目名称:qtextended,代码行数:5,代码来源:JSNodeIterator.cpp

示例13: m_impl

JSSVGAnimatedRect::JSSVGAnimatedRect(ExecState* exec, SVGAnimatedRect* impl)
    : m_impl(impl)
{
    setPrototype(JSSVGAnimatedRectPrototype::self(exec));
}
开发者ID:pk-codebox-evo,项目名称:remixos-usb-tool,代码行数:5,代码来源:JSSVGAnimatedRect.cpp

示例14: m_impl

JSNode::JSNode(ExecState* exec, Node* impl)
    : m_impl(impl)
{
    setPrototype(JSNodePrototype::self(exec));
}
开发者ID:FilipBE,项目名称:qtextended,代码行数:5,代码来源:JSNode.cpp

示例15: JSXPathEvaluatorConstructor

 JSXPathEvaluatorConstructor(ExecState* exec)
 {
     setPrototype(exec->lexicalInterpreter()->builtinObjectPrototype());
     putDirect(exec->propertyNames().prototype, JSXPathEvaluatorPrototype::self(exec), None);
 }
开发者ID:Crawping,项目名称:davinci,代码行数:5,代码来源:JSXPathEvaluator.cpp


注:本文中的setPrototype函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。